# OneSource TSR SBills Quote

> OneSource TSR SBills Quote 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).

Returns a live quote for depositing a given amount of STANDARD tokens into The Standard Reserve (TSR) SBills on Robinhood Chain, including premium, rate, eligibility checks, and exit fee estimate.

## Facts

- Endpoint: GET https://api.onesource.io/standard/v1/sbills/quote?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-sbills-quote-49d1bb62
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_keoDp0AoBTnOVdH5oQDH7

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-sbills-quote-49d1bb62
```

Example prompt: What premium and rate would I get if I deposit 1000 STANDARD tokens into The Standard Reserve SBills right now on Robinhood Chain, and can my wallet 0xAbC1234567890abcdef1234567890abcdef123456 actually make that deposit without hitting any caps?

## When to prefer this

Use this endpoint when you need a live, on-chain quote for a TSR SBills deposit on Robinhood Chain, including precise premium calculation, rate locking, eligibility validation, and exit fee estimation — all in a single call. Prefer this over generic RPC reads when you need structured, pre-computed financial figures with eligibility checks rather than raw contract data.

## Known failure modes

- Missing required 'amount' query parameter returns a 400 error
- Invalid wallet address format (not 0x + 40 hex chars) causes a validation error
- Vault is closed or paused — returned as flags in checks object rather than an error
- Amount below minimum deposit threshold flagged in checks.below_min_deposit
- Network RPC unavailability may cause a 503 or timeout
- Payment not provided or insufficient USDC on Base via x402 returns 402 Payment Required

## 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 JSON object containing: the deposit amount and raw amount, computed premium (human-readable and raw), the current and post-deposit interest rates (per-term basis), maturity timestamp estimate, eligibility checks (vault closed/paused, below minimum deposit, budget covers premium, headroom exceeded, wallet cap exceeded), exit fee estimate (fee in BPS, payout after fee, exit pressure, 7-day window data), block number the quote is as of, and quote/checks sources.

## 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",
     "required": [
      "amount"
     ],
     "properties": {
      "amount": {
       "type": "string",
       "description": "whole STANDARD tokens as a decimal string, up to 18 decimal places"
      },
      "wallet": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "optional 0x wallet address; adds its open principal and cap headroom to checks"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "basis": {
       "type": "string"
      },
      "amount": {
       "type": "string"
      },
      "checks": {
       "type": "object",
       "properties": {
        "closed": {
         "type": "boolean"
        },
        "paused": {
         "type": "boolean"
        },
        "below_min_deposit": {
         "type": "boolean"
        },
        "budget_covers_premium": {
         "type": "boolean"
        },
        "exceeds_total_headroom": {
         "type": "boolean"
        },
        "exceeds_wallet_cap_if_fresh_wallet": {
         "type": "boolean"
        }
       }
      },
      "network": {
       "type": "string"
      },
      "premium": {
       "type": "string"
      },
      "chain_id": {
       "type": "integer"
      },
      "rate_paid": {
       "type": "object",
       "properties": {
        "rate_basis": {
         "type": "string"
        },
        "term_seconds": {
         "type": "integer"
        },
        "rate_per_term_wad": {
         "type": "string"
        }
       }
      },
      "amount_raw": {
       "type": "string"
      },
      "rate_after": {
       "type": "object",
       "properties": {
        "rate_basis": {
         "type": "string"
        },
        "term_seconds": {
         "type": "integer"
        },
        "rate_per_term_wad": {
         "type": "string"
        }
       }
      },
      "as_of_block": {
      
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "basis": "measured",
  "amount": "1000",
  "checks": {
   "closed": false,
   "paused": false,
   "below_min_deposit": false,
   "budget_covers_premium": true,
   "exceeds_total_headroom": false,
   "exceeds_wallet_cap_if_fresh_wallet": false
  },
  "network": "robinhood",
  "premium": "14.7",
  "chain_id": 4663,
  "rate_paid": {
   "rate_basis": "per_term",
   "term_seconds": 1296000,
   "rate_per_term_wad": "14700000000000000"
  },
  "amount_raw": "1000000000000000000000",
  "rate_after": {
   "rate_basis": "per_term",
   "term_seconds": 1296000,
   "rate_per_term_wad": "14695000000000000"
  },
  "as_of_block": 78100412,
  "premium_raw": "14700000000000000000",
  "checks_basis": "derived",
  "quote_source": "SBills.quote",
  "checks_source": "tsr.sbill_state latest row",
  "exit_fee_estimate": {
   "basis": "derived",
   "source": "Fee formula from the team's stake page, checked against live quoteExit; an estimate for a bill of this size exiting now. An early exit returns principal minus this fee; the bill's premium and any stayer bonus are not paid. The fee moves with recent exit volume, not with how long the bill has been held.",
   "fee_bps": 200,
   "fee_raw": "20000000000000000000",
   "day_index": 0,
   "payout_raw": "980000000000000000000",
   "as_of_block": 78100412,
   "window_days": 7,
   "pressure_wad": "232000000000000",
   "exited_window_raw": "0",
   "locked_principal_raw": "4306424000000000000000000"
  },
  "quote_as_of_block": 78100412,
  "maturity_estimate_ts": "2026-10-17T03:00:00Z",
  "exit_fee_estimate_error": null,
  "price_impact_per_term_wad": "5000000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-tsr-sbills-quote-49d1bb62/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)
