# OneSource TSR Protocol Flows API

> OneSource TSR Protocol Flows API 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 paginated on-chain flow events from The Standard Reserve (TSR) protocol on Robinhood Chain, filtered by flow kind such as vault outflows, POL fees, buybacks, and incentive sends.

## Facts

- Endpoint: GET https://api.onesource.io/standard/v1/flows/protocol?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-protocol-flows-api-5f52a584
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2ZdKvC3JBV4ukyHJREncA

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-protocol-flows-api-5f52a584
```

Example prompt: Pull the last 50 vault_outflow events from The Standard Reserve protocol on Robinhood Chain using OneSource, starting from cursor 0.

## When to prefer this

Use this endpoint when you need raw, paginated on-chain flow event data from The Standard Reserve (TSR) protocol specifically, particularly for auditing treasury operations, tracking vault activity, or analyzing protocol-level token movements on Robinhood Chain. Prefer this over generic RPC calls when you need pre-indexed, labeled, and structured flow events rather than raw transaction logs.

## Known failure modes

- Invalid 'kind' enum value returns a validation error
- Cursor out of range returns empty results or an error
- Limit exceeding 500 is rejected
- Endpoint returns no flows if none match the filter in the current block range
- Payment failure (insufficient USDC balance) results in a 402 response

## 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 JSON object containing a list of flow events (each with id, timestamp, tx hash, kind, block, epoch, token address, from/to addresses, ETH/STD/token amounts in raw and decimal form, contract label), plus the current network, chain ID, block height, and a next_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": {
      "kind": {
       "enum": [
        "holdings_migrated",
        "taxes_forwarded",
        "fees_recycled",
        "team_claimed",
        "pol_buyback",
        "pol_fees_collected",
        "pol_paired",
        "incentive_sent",
        "vault_outflow"
       ],
       "type": "string"
      },
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1
      },
      "cursor": {
       "type": "integer",
       "minimum": 0
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "basis": {
       "type": "string"
      },
      "flows": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "integer"
         },
         "ts": {
          "type": [
           "string",
           "null"
          ]
         },
         "tx": {
          "type": "string"
         },
         "kind": {
          "type": "string"
         },
         "basis": {
          "type": "string"
         },
         "block": {
          "type": "integer"
         },
         "epoch": {
          "type": [
           "integer",
           "null"
          ]
         },
         "token": {
          "type": [
           "string",
           "null"
          ]
         },
         "method": {
          "type": [
           "string",
           "null"
          ]
         },
         "log_index": {
          "type": "integer"
         },
         "sub_index": {
          "type": "integer"
         },
         "eth_amount": {
          "type": [
           "string",
           "null"
          ]
         },
         "std_amount": {
          "type": [
           "string",
           "null"
          ]
         },
         "to_address": {
          "type": [
           "string",
           "null"
          ]
         }
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "basis": "measured",
  "flows": [
   {
    "id": 8,
    "ts": "2026-10-02T19:12:14Z",
    "tx": "0xbc2b1c1b34d9977ad4927ad0fcf94a19b927f9095e192a3b54b8ade1eaf54657",
    "kind": "vault_outflow",
    "basis": "measured",
    "block": 78471762,
    "epoch": null,
    "token": "0x5fc5360d0400a0fd4f2af552add042d716f1d168",
    "method": "transfer",
    "log_index": 1,
    "sub_index": 0,
    "eth_amount": null,
    "std_amount": null,
    "to_address": "0x3cf569a986051429c01ef89b37773fd81a81166f",
    "from_address": "0x9a6f75ae9e8bdb68e1d12a9adccd0bb2958e3c22",
    "token_amount": "1000000000000",
    "contract_label": "vault_token_outflow",
    "eth_amount_dec": null,
    "std_amount_dec": null,
    "token_amount_dec": "1000000"
   }
  ],
  "network": "robinhood",
  "chain_id": 4663,
  "as_of_block": 78471762,
  "next_cursor": 8
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-tsr-protocol-flows-api-5f52a584/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)
