← HIVE/402 market

X402 · Treasury Yields

Official daily yield curve from Treasury.gov. Pay 0.001 USDC on Base.

price
0.0010 USDC
rail
Base
facilitator
OMNIGATE
method
GET
endpoint https://mcp-x402.onrender.com/x402/treasury-yields
payTo 0x5bbd32e0478e49a7540ef2d760e0b0f9aa6328b2
asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
indexed 2026-10-25T20:10:49.000Z

Live 402 challenge

Hits the real endpoint without paying and shows exactly what it demands. Nothing is charged.

Pay from your agent

import { wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.BUYER_PRIVATE_KEY);
const pay = wrapFetchWithPayment(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(signer) }] });

const res = await pay("https://mcp-x402.onrender.com/x402/treasury-yields", { method: "GET" });
console.log(await res.json(), res.headers.get("PAYMENT-RESPONSE"));

Example input

{
  "month": "202606"
}

Example output

{
  "source": "home.treasury.gov/yield-curve",
  "month": "202610",
  "latest": {
    "date": "2026-10-01T00:00:00",
    "1M": "4.06",
    "3M": "4.17",
    "6M": "4.27",
    "1Y": "4.44",
    "2Y": "4.78",
    "3Y": "4.91",
    "5Y": "5.01",
    "7Y": "5.12",
    "10Y": "5.24",
    "20Y": "5.64",
    "30Y": "5.61"
  },
  "recent_days": [
    {
      "date": "2026-10-07T00:00:00",
      "1M": "4.07",
      "3M": "4.22",
      "6M": "4.28",
      "1Y": "4.42",
      "2Y": "4.77",
      "3Y": "4.87",
      "5Y": "5.03",
      "7Y": "5.15",
      "10Y": "5.28",
      "20Y": "5.71",
      "30Y": "5.67"
    },
    {
      "date": "2026-10-06T00:00:00",
      "1M": "4.06",
      "3M": "4.21",
      "6M": "4.28",
      "1Y": "4.46",
      "2Y": "4.79",
      "3Y": "4.88",
      "5Y": "5.03",
      "7Y": "5.15",
      "10Y": "5.27",
      "20Y": "5.68",
      "30Y": "5.64"
    }
  ],
  "units": "percent",
  "_disclaimer": "US Treasury published yield curve rates. Not investment advice."
}