# OneSource TSR S-Bills Staking Decision API

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

Returns a composite staking decision for STANDARD tokens on Robinhood Chain S-Bills, including current rate, rate drift projection, premium quote, and wallet-specific capacity headroom.

## Facts

- Endpoint: GET https://api.onesource.io/standard/v1/decisions/stake?utm_source=zero.xyz
- Price: $0.05/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-s-bills-staking-decision-api-017c4ffb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iyceBAk9oz15tWNkQ47XM

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-s-bills-staking-decision-api-017c4ffb
```

Example prompt: What's the current S-Bills staking decision for 1000 STANDARD tokens on Robinhood Chain — is the pool open, what's the premium, and how fast is the rate drifting toward the ceiling?

## When to prefer this

Use this endpoint when an agent needs a decision-ready composite view of S-Bills staking on Robinhood Chain — combining live rate, drift projection, premium quote, and optionally wallet-specific capacity in a single call. Prefer this over raw RPC calls when you need interpreted staking analytics rather than raw contract state, or when you want pre-computed rate-to-ceiling timing without assembling multiple eth_call responses yourself.

## Known failure modes

- Missing required 'amount' query parameter returns a validation error
- Invalid wallet address format returns a pattern mismatch error
- Wallet query provided but address not found on-chain returns a 'not_ready' status for wallet_sbills part
- Pool is paused or closed, reflected in summary flags rather than an error
- Rate parameters may change between block reads, causing drift projections to be stale
- Network congestion on Robinhood Chain may delay block reads
- Payment not provided or insufficient USDC on Base / pathUSD on Tempo returns a 402 error

## 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

A JSON composite with staking decision status (open/paused/closed/drifting), a premium quote in raw STANDARD token units, projected rate drift over time (including rate-per-term in WAD, seconds to ceiling, and ceiling-reached timestamp), optional wallet-specific S-Bills principal and headroom, and block-stamped provenance for each data part.

## 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 S-Bills principal and cap headroom"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "basis": {
       "type": "string"
      },
      "parts": {
       "type": "object"
      },
      "network": {
       "type": "string"
      },
      "summary": {
       "type": "object"
      },
      "waiting": {
       "type": "object"
      },
      "chain_id": {
       "type": "integer"
      },
      "as_of_basis": {
       "type": "string"
      },
      "as_of_block": {
       "type": "integer"
      },
      "assumptions": {
       "type": "array"
      },
      "parts_as_of_blocks": {
       "type": "object"
      }
     },
     "description": "Endpoint-specific response payload"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "basis": "decision_composite",
  "parts": {
   "sbills_quote": {
    "data": {
     "amount_raw": "1000000000000000000000",
     "premium_raw": "22084982312670000000",
     "quote_as_of_block": 78568272
    },
    "status": "ok"
   },
   "wallet_sbills": {
    "error": "wallet query parameter not provided",
    "status": "not_ready"
   },
   "sbills_current": {
    "data": {
     "closed": false,
     "paused": false,
     "drifting": true
    },
    "status": "ok"
   }
  },
  "network": "robinhood",
  "summary": {
   "closed": false,
   "paused": false,
   "drifting": true,
   "amount_raw": "1000000000000000000000",
   "premium_raw": "22084982312670000000",
   "seconds_to_ceiling": 197000,
   "rate_paid_per_term_wad": "22084982312670000",
   "rate_per_term_wad_in_1h_if_no_deposits": "22923837351682252"
  },
  "waiting": {
   "basis": "derived",
   "error": null,
   "inputs": {
    "ceiling_wad": {
     "basis": "measured",
     "value": "70000000000000000",
     "source": "SBills.ceiling",
     "as_of_block": 78568272
    },
    "current_rate_wad": {
     "basis": "measured",
     "value": "22090504018350652",
     "source": "SBills.currentRate",
     "as_of_block": 78568272
    },
    "drift_per_second_wad": {
     "basis": "measured",
     "value": "231481481481",
     "source": "SBills.driftPerSecond",
     "as_of_block": 78568272
    }
   },
   "points": [
    {
     "rate": {
      "rate_basis": "per_term",
      "term_seconds": 1296000,
      "rate_per_term_wad": "22923837351682252"
     },
     "at_ts": "2026-10-02T13:00:00Z",
     "horizon": "1h",
     "horizon_seconds": 3600,
     "quote_rate_paid": {
      "rate_basis": "per_term",
      "term_seconds": 1296000,
      "rate_per_term_wad": "22918107347386000"
     },
     "ceiling_reached_by_then": false
    }
   ],
   "formula": "min(rate + drift_per_second * (t - rate_updated_at), ceiling) while drifting…",
   "drifting": true,
   "rate_now": {
    "rate_basis": "per_term",
    "term_seconds": 1296000,
    "rate_per_term_wad": "22090504018350652"
   },
   "assumption": "if nobody else deposits and the admin does not change rate parameters",
   "seconds_to_ceiling": 197000,
   "ceiling_reached_at_ts": "2026-10-04T10:23:51Z"
  },
  "chain_id": 4663,
  "as_of_basis": "parts_min",
  "as_of_block": 78568272,
  "assumptions": [
   "waiting: if nobody else deposits and the admin does not change rate parameters."
  ],
  "parts_as_of_blocks": {
   "sbills_quote": 78568
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-tsr-s-bills-staking-decision-api-017c4ffb/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)
