87trust / 100

Decisions Branch

by api.onesource.io in Onchain & crypto

x402 APIPassing, checked 1 h ago

The Standard Reserve (TSR), an on-chain reserve protocol on Robinhood Chain. Everything relevant to deciding whether to buy a Branch or license right now, bundled into one call.

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

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
115 ms typical, 115 ms slowest 5%
Last check
1 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.onesource.io/standard/v1/decisions/branch"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.onesource.io%2Fstandard%2Fv1%2Fdecisions%2Fbranch
const res = await pay("https://api.onesource.io/standard/v1/decisions/branch");
console.log(await res.json());

Example input

{}

Example output

{
  "as_of_basis": "parts_min",
  "as_of_block": 63499000,
  "assumptions": [
    "estimate: the ETH cost is a single-range constant-liquidity approximation..."
  ],
  "basis": "decision_composite",
  "chain_id": 4663,
  "network": "robinhood",
  "parts": {
    "auctions_days_license": {
      "data": {
        "days": []
      },
      "status": "ok"
    },
    "doi": {
      "data": {
        "doi": {
          "days": "4.20"
        }
      },
      "status": "ok"
    },
    "governance": {
      "data": {
        "pending": []
      },
      "status": "ok"
    },
    "license_cost": {
      "data": {
        "cheapest_path": "license"
      },
      "status": "ok"
    },
    "license_headroom": {
      "error": "charter_id query parameter not provided",
      "status": "not_ready"
    },
    "policy_outlook": {
      "data": {
        "multiplier_if_sign_holds_raw": "1000000000000000000"
      },
      "status": "ok"
    }
  },
  "parts_as_of_blocks": {
    "doi": 63499000,
    "license_cost": 63499100
  },
  "summary": {
    "charter_price_raw": "2000000000000000000",
    "cheapest_path": "license",
    "days_of_issuance": "4.20",
    "license_eth_cost_estimate_raw": "12000000000000",
    "license_price_raw": "500000000000000000",
    "multiplier_if_sign_holds_raw": "1000000000000000000",
    "pending_governance_changes": 0
  }
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoPassed402484 ms$0.05
6 h agoPassed402115 ms$0.05