82trust / 100

Decisions Exit

by api.onesource.io in Onchain & crypto

x402 APIPassing, checked 2 h ago

The Standard Reserve (TSR), an on-chain reserve protocol on Robinhood Chain. Everything relevant to deciding whether to exit a charter's branches right now, bundled into one call.

GET
https://api.onesource.io/standard/v1/decisions/exit
Price
$0.05
per call in USDC
Uptime
99.01%
last 30 days
Response time
521 ms
599 ms slowest 5%
Last check
Passed
2 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

GET https://api.onesource.io/standard/v1/decisions/exit

Each call costs $0.05 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

GET https://api.onesource.io/standard/v1/decisions/exit?charter_id=42

Parameters

ParameterTypeRequiredDescription
at_blockintegerNo
branchesintegerNo
charter_idintegerYes

Example response

The provider's example. We can't check it without paying.

Example response, 128 lines
{
  "as_of_basis": "parts_min",
  "as_of_block": 63499000,
  "assumptions": [
    "realizable_eth is a single-range constant-liquidity price-impact…"
  ],
  "basis": "decision_composite",
  "chain_id": 4663,
  "network": "robinhood",
  "parts": {
    "charter_drops": {
      "data": {
        "branches_to_close": 4,
        "claim_transactions": 13,
        "claimable_without_closing": {
          "branches": 0,
          "eth_complete": true,
          "eth_value_raw": null
        },
        "closes_last_branch": false,
        "released_by_closing": {
          "branches": 52,
          "eth_complete": true,
          "eth_value_raw": "964224599412"
        },
        "warnings": []
      },
      "status": "ok"
    },
    "exit_quote": {
      "data": {
        "gross_raw": "1000000000000000000",
        "net_raw": "950000000000000000"
      },
      "status": "ok"
    },
    "fee_curve": {
      "data": {
        "fee_rate_now_live_wad": "50000000000000000"
      },
      "status": "ok"
    },
    "fee_forecast": {
      "data": {
        "days_until_min_fee": 3
      },
      "status": "ok"
    },
    "governance": {
      "data": {
        "pending": []
      },
      "status": "ok"
    },
    "policy_outlook": {
      "data": {},
      "status": "ok"
    },
    "pool": {
      "data": {
        "tick": -1200
      },
      "status": "ok"
    },
    "sbills_alternative": {
      "data": {
        "alternative": {
          "amount_source": "exit_quote.net_raw",
          "basis": "derived",
          "exit_fee_estimate": {
            "fee_bps": 100,
            "fee_raw": "9500000000000000",
            "payout_raw": "940500000000000000"
          },
          "premium_raw": "20980733197036500",
          "rate_paid": {
            "rate_per_term_wad": "22084982312670000",
            "term_days": "15"
          },
          "term_days": "15"
        },
        "amount_raw": "950000000000000000"
      },
      "status": "ok"
    },
    "stimulus": {
      "data": {
        "at_risk_on_full_exit_raw": "755287009063444108760",
        "claimable_raw": "755287009063444108760",
        "deadline": "2026-11-10T07:03:45Z",
        "status": "claimable"
      },
      "status": "ok"
    },
    "tax_schedule": {
      "data": {
        "current_sell_tax_bps_raw": "50"
      },
      "status": "ok"
    }
  },
  "parts_as_of_blocks": {
    "fee_curve": 63499000,
    "fee_forecast": 63499000
  },
  "summary": {
    "charter_drops_released_branches": 52,
    "charter_drops_released_eth_value_raw": "964224599412",
    "charter_drops_warning_codes": [],
    "current_sell_tax_bps_raw": "50",
    "days_until_min_fee": 3,
    "fee_rate_now_live_wad": "50000000000000000",
    "fee_raw": "50000000000000000",
    "gross_raw": "1000000000000000000",
    "net_raw": "950000000000000000",
    "pending_governance_changes": 0,
    "realizable_eth_raw": "470000000000000",
    "sbills_alternative_amount_raw": "950000000000000000",
    "sbills_alternative_exit_fee_bps": 100,
    "sbills_alternative_premium_raw": "20980733197036500",
    "sbills_alternative_rate_paid_per_term_wad": "22084982312670000",
    "sbills_alternative_term_days": "15",
    "stimulus_at_risk_on_full_exit_raw": "755287009063444108760",
    "stimulus_claim_deadline": "2026-11-10T07:03:45Z",
    "stimulus_claimable_raw": "755287009063444108760",
    "stimulus_status": "claimable"
  }
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.05.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.onesource.io/standard/v1/decisions/exit?charter_id=42'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.onesource.io/standard/v1/decisions/exit?charter_id=42' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.onesource.io%2Fstandard%2Fv1%2Fdecisions%2Fexit
const res = await pay("https://api.onesource.io/standard/v1/decisions/exit?charter_id=42");
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.get("https://api.onesource.io/standard/v1/decisions/exit?charter_id=42")
    print(res.status_code, res.text)

Security scan

No findings

We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402535 ms$0.05
16 h agoPassed402561 ms$0.05
3 days agoTimed out---
4 days agoPassed402554 ms$0.05
4 days agoPassed402253 ms$0.05
Show 10 older checks
5 days agoPassed402576 ms$0.05
5 days agoPassed402514 ms$0.05
6 days agoPassed402546 ms$0.05
6 days agoPassed402122 ms$0.05
6 days agoPassed402485 ms$0.05
7 days agoPassed402122 ms$0.05
7 days agoPassed402534 ms$0.05
7 days agoPassed402540 ms$0.05
7 days agoPassed402497 ms$0.05
8 days agoPassed402515 ms$0.05