{"uid":"cap_EI85S-XhEFMxk8ucB4GnX","slug":"onesource-s-bills-decision-endpoint-2b37301b","name":"OneSource S-Bills Decision Endpoint","description":"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.","url":"https://api.onesource.io/standard/v1/decisions/sbill?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":["bill_id"],"properties":{"bill_id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"the S-Bills bill id, a positive integer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"basis":{"type":"string"},"parts":{"type":"object","properties":{"sbill":{"type":"object","properties":{"data":{"type":"object","properties":{"status":{"type":"string"},"bill_id":{"type":"string"},"premium_raw":{"type":"string"},"principal_raw":{"type":"string"}}},"status":{"type":"string"}}},"sbills_current":{"type":"object","properties":{"data":{"type":"object","properties":{"closed":{"type":"boolean"},"paused":{"type":"boolean"},"drifting":{"type":"boolean"}}},"status":{"type":"string"}}}}},"state":{"type":"string"},"bill_id":{"type":"string"},"network":{"type":"string"},"summary":{"type":"object","properties":{"state":{"type":"string"},"principal_raw":{"type":"string"},"exit_fee_bps_now":{"type":"integer"},"exit_payout_now_raw":{"type":"string"},"lowest_projected_fee_bps":{"type":["string","null"]}}},"chain_id":{"type":"integer"},"maturity":{"type":"object","properties":{"reason":{"type":"string"},"applicable":{"type":"boolean"}}},"as_of_basis":{"type":"string"},"as_of_block":{"type":"integer"},"assumptions":{"type":"array","items":{"type":"string"}},"exit_schedule":{"type":"object","properties":{"basis":{"type":"string"},"error":{"type":["string","null"]},"exit_now":{"type":"object","properties":{"basis":{"type":"string"},"source":{"type":"string"},"fee_bps":{"type":"integer"},"fee_raw":{"type":"string"},"payout_raw":{"type":"string"},"as_of_block":{"type":"integer"}}},"applicable":{"type":"boolean"},"assumption":{"type":"string"},"fee_by_day":{"type":"array","items":{"type":"object","properties":{"basis":{"type":"string"},"fee_bps":{"type":"integer"},"fee_raw":{"type":"string"},"from_ts":{"type":"string"},"day_index":{"type":"integer"},"payout_raw":{"type":"string"},"offset_days":{"type":"integer"}}}},"window_days":{"type":"integer"},"today_day_index":{"type":"integer"},"premium_given_up":{"type":"object","properties":{"basis":{"type":"string"},"premium_raw":{"type":"string"},"premium_unvested_raw":{"type":"string"},"premium_vested_so_far_raw":{"type":"string"}}},"seconds_to_maturity":{"type":"integer"},"lowest_projected_fee":{"type":["string","null"]}}},"parts_as_of_blocks":{"type":"object","properties":{"sbill":{"type":"integer"},"sbills_current":{"type":"integer"}}}},"description":"Endpoint-specific response payload"}}}}},"responseSchema":{"type":"json","example":{"basis":"decision_composite","parts":{"sbill":{"data":{"status":"active","bill_id":"1","premium_raw":"5871963380092932000000","principal_raw":"250000000000000000000000"},"status":"ok"},"sbills_current":{"data":{"closed":false,"paused":false,"drifting":true},"status":"ok"}},"state":"active","bill_id":"1","network":"robinhood","summary":{"state":"active","principal_raw":"250000000000000000000000","exit_fee_bps_now":203,"exit_payout_now_raw":"244925000000000000000000","lowest_projected_fee_bps":null},"chain_id":4663,"maturity":{"reason":"the bill has not matured; roll and redeem revert until maturity","applicable":false},"as_of_basis":"parts_min","as_of_block":78663636,"assumptions":["exit_schedule: if no other bill exits, nobody deposits, no bill matures or settles, and the admin does not change the exit-fee parameters."],"exit_schedule":{"basis":"derived","error":null,"exit_now":{"basis":"measured","source":"SBills.quoteExit","fee_bps":203,"fee_raw":"5075000000000000000000","payout_raw":"244925000000000000000000","as_of_block":78663636},"applicable":true,"assumption":"if no other bill exits, nobody deposits, no bill matures or settles, and the admin does not change the exit-fee parameters","fee_by_day":[{"basis":"derived","fee_bps":203,"fee_raw":"5075000000000000000000","from_ts":"2026-10-02T19:54:16Z","day_index":1,"payout_raw":"244925000000000000000000","offset_days":0},{"basis":"derived","fee_bps":203,"fee_raw":"5075000000000000000000","from_ts":"2026-10-03T14:19:35Z","day_index":2,"payout_raw":"244925000000000000000000","offset_days":1}],"window_days":7,"today_day_index":1,"premium_given_up":{"basis":"measured","premium_raw":"5871963380092932000000","premium_unvested_raw":"5464668413974047718204","premium_vested_so_far_raw":"407294966118884281796"},"seconds_to_maturity":1205100,"lowest_projected_fee":null},"parts_as_of_blocks":{"sbill":78663636,"sbills_current":78663634}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BHjm8KG5rWtuH4tvumkIp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a composite on-chain decision summary for a specific S-Bills bill on Robinhood Chain, including current state, exit schedule, fees, payout projections, and maturity status.","exampleAgentPrompt":"Can you look up the current decision summary for S-Bill number 1 on the OneSource TSR endpoint — I want to know its state, what I'd get if I exited right now, and the projected exit fees over the next week?","exampleUseCases":[{"title":"Exit decision for active S-Bill position","prompt":"I hold S-Bill number 7 on Robinhood Chain — what would my payout be if I exited today, and is there a better day this week to exit with a lower fee?"},{"title":"Checking S-Bill maturity status","prompt":"Has S-Bill 3 matured yet? Can I roll or redeem it, or is it still locked?"},{"title":"Monitoring S-Bill health before rebalancing","prompt":"Before I rebalance my TSR reserve portfolio, can you check whether S-Bill 42 is active, paused, or drifting, and tell me the current principal and vested premium?"}],"resultDescription":"A JSON object containing: bill state (active/paused/closed/drifting), principal and premium amounts in raw units, current exit fee in basis points, current exit payout, a 7-day exit fee schedule by day, maturity status and reason, block numbers for each data part, the assumptions underlying the exit schedule, and a summary object with lowest projected fee and other key metrics.","failureModes":["Invalid bill_id (non-positive integer or non-numeric string) returns a validation error","Bill ID does not exist on-chain returns a not-found or error state","Upstream RPC node unavailability may cause parts to fail or return partial data","Payment failure (insufficient USDC balance or MPP funds) blocks the request","Network congestion on Robinhood Chain may cause stale block data"],"whenToPreferThis":"Use this endpoint when you need a comprehensive, pre-computed decision summary for a specific S-Bills position on Robinhood Chain (TSR), including exit fee projections and maturity logic, rather than assembling raw RPC calls yourself. It is the right choice when an agent or user needs actionable exit/hold guidance for a TSR S-Bill without writing custom smart contract queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T06:31:14.858Z","isFirstParty":false,"canonicalSlug":"onesource-s-bills-decision-endpoint-2b37301b"}