# OneSource S-Bills Decision Endpoint

> OneSource S-Bills Decision Endpoint 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-23).

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.

## Facts

- Endpoint: GET https://api.onesource.io/standard/v1/decisions/sbill?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-s-bills-decision-endpoint-2b37301b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EI85S-XhEFMxk8ucB4GnX

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-s-bills-decision-endpoint-2b37301b
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

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

## 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": [
      "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_r
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-s-bills-decision-endpoint-2b37301b/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)
