# OneSource TSR sBill Events

> OneSource TSR sBill Events is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-21).

Fetches on-chain event history for Standard Reserve (TSR) sBills on Robinhood Chain, including deposits, withdrawals, and other lifecycle events per bill or owner

## Facts

- Endpoint: GET https://api.onesource.io/standard/v1/sbills/events?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-tsr-sbill-events-0623c022
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8dUP6kxOjbPJwy7DT_onA

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability onesource-tsr-sbill-events-0623c022
```

Example prompt: Pull the last 50 on-chain events for TSR sBill ID 42 on Robinhood Chain — I want to see all Deposited events including the transaction hashes, block numbers, and principal/premium amounts.

## When to prefer this

Use this endpoint when you need the full event log for a specific TSR sBill or owner address on Robinhood Chain, including lifecycle events like deposits and withdrawals with exact principal and premium values. Prefer this over generic RPC calls when you need structured, paginated, pre-decoded event data from The Standard Reserve protocol without having to parse raw Ethereum logs yourself.

## Known failure modes

- Invalid owner address format (not a valid 0x hex address) returns a 400 error
- Invalid before cursor format (not in block:logindex format) causes a 400 error
- bill_id not found returns an empty events array rather than an error
- limit out of range (below 1 or above 500) returns a validation error
- Payment not received or insufficient USDC balance causes a 402 Payment Required response
- Network congestion on Robinhood Chain may cause stale as_of_block values

## How this service works

Three data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics), plus The Standard Reserve (TSR), an on-chain reserve protocol on Robinhood Chain (supply, policy, epochs, auctions, branches, vaults, exit pressure). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.

## Output

Returns a paginated list of on-chain sBill events, each containing: timestamp, transaction hash, block number, owner address, bill ID, log index, event name (e.g. Deposited), principal_raw, and premium_raw amounts in wei. Also returns the network name, chain ID, current as_of_block, and a next_before cursor for pagination.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1
      },
      "owner": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      },
      "before": {
       "type": "string",
       "pattern": "^[0-9]+:[0-9]+$"
      },
      "bill_id": {
       "type": "string"
      },
      "event_name": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "basis": {
       "type": "string"
      },
      "events": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "ts": {
          "type": "string"
         },
         "tx": {
          "type": "string"
         },
         "block": {
          "type": "integer"
         },
         "owner": {
          "type": "string"
         },
         "bill_id": {
          "type": "string"
         },
         "log_index": {
          "type": "integer"
         },
         "event_name": {
          "type": "string"
         },
         "premium_raw": {
          "type": "string"
         },
         "principal_raw": {
          "type": "string"
         }
        }
       }
      },
      "network": {
       "type": "string"
      },
      "chain_id": {
       "type": "integer"
      },
      "as_of_block": {
       "type": "integer"
      },
      "next_before": {
       "type": "string"
      }
     },
     "description": "Endpoint-specific response payload"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "basis": "measured",
  "events": [
   {
    "ts": "2026-10-01T22:19:00Z",
    "tx": "0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f",
    "block": 77731000,
    "owner": "0x5977b25419f9c0ddcb2f89fe204955622f4f57ea",
    "bill_id": "42",
    "log_index": 3,
    "event_name": "Deposited",
    "premium_raw": "14700000000000000000",
    "principal_raw": "1000000000000000000000"
   }
  ],
  "network": "robinhood",
  "chain_id": 4663,
  "as_of_block": 78100412,
  "next_before": "77731000:3"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-tsr-sbill-events-0623c022/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onesource.io](https://www.zero.xyz/host/api.onesource.io/llms.txt)
