# OneSource Standard Reserve Protocol Constants

> OneSource Standard Reserve Protocol Constants is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-23).

Fetches on-chain protocol constants from The Standard Reserve (TSR) on Robinhood Chain, including base rate, epoch length, price floors, and their on-chain sources.

## Facts

- Endpoint: GET https://api.onesource.io/standard/v1/constants?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-standard-reserve-protocol-constants-0277957d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HpVnBZ52b0Pd76Bh2zdof

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-standard-reserve-protocol-constants-0277957d
```

Example prompt: Pull the current protocol constants for The Standard Reserve on Robinhood Chain — I need the base rate, epoch length, price floors, and which contracts and blocks they were last read from.

## When to prefer this

Use this endpoint when you need authoritative, on-chain protocol constants directly from The Standard Reserve (TSR) on Robinhood Chain, particularly the base rate, epoch length, and price floors with their source contract provenance. Prefer this over manual RPC calls when you want a clean, structured JSON response with block-level audit trail without writing raw blockchain queries.

## Known failure modes

- Network or RPC connectivity issues reading from Robinhood Chain may return error or stale data
- If the on-chain contract is unavailable, constant values may be missing or null
- Payment failure (x402) if USDC payment of $0.005 is not properly attached
- Rate limiting if too many requests are made in quick succession

## How this service works

The Standard Reserve (TSR), an on-chain reserve protocol on Robinhood Chain. Chain-read protocol constants: base rate, epoch length, floors, and where each one was last read from.

## Output

Returns a JSON object with the network name, chain ID, and an array of protocol constants. Each constant includes a key name, numeric value, text value (if applicable), basis, source contract address, source function, the block at which it was last read, and the timestamp of that read.

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "network": {
       "type": "string"
      },
      "chain_id": {
       "type": "integer"
      },
      "constants": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "key": {
          "type": "string"
         },
         "basis": {
          "type": "string"
         },
         "read_at": {
          "type": "string"
         },
         "source_fn": {
          "type": "string"
         },
         "value_num": {
          "type": "string"
         },
         "read_block": {
          "type": "integer"
         },
         "value_text": {
          "type": [
           "string",
           "null"
          ]
         },
         "source_contract": {
          "type": "string"
         }
        }
       }
      }
     },
     "description": "Endpoint-specific response payload"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "robinhood",
  "chain_id": 4663,
  "constants": [
   {
    "key": "license_floor_price",
    "basis": "measured",
    "read_at": "2026-09-15T03:00:00Z",
    "source_fn": "floorPrice",
    "value_num": "50000000000000000",
    "read_block": 63512040,
    "value_text": null,
    "source_contract": "0x7cd3c6ec047b1a21ea65af64d7c850e6f6049015"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-standard-reserve-protocol-constants-0277957d/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)
