G

Gblin · Treasury State

by Gblin

GETBase

$0.001

per call · USD Coin on Base

Real-time GBLIN protocol state: NAV in USD, basket composition with dynamic weights, and Crash Shield status.

Endpoint

GET https://gblin.digital/api/x402/treasury-state

14

Calls / 30d

9

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://gblin.digital/api/x402/treasury-state", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://gblin.digital/api/x402/treasury-state" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "basket": [
    {
      "base_weight_pct": 50,
      "dynamic_weight_pct": 50,
      "is_stable": false,
      "pool_fee_bps": 500,
      "slashed": false,
      "token": "0x4200000000000000000000000000000000000006"
    }
  ],
  "crash_shield_active": false,
  "eth_price_usd": 3450.12,
  "meta": {
    "as_of_unix": 1747600000,
    "chain": "base",
    "chain_id": 8453,
    "contract": "0x36C81d7E1966310F305eA637e761Cf77F90852f0"
  },
  "nav_usd": 1.234567,
  "slippage_buffer_pct": 2.5,
  "slippage_reason": "normal"
}

Payment details

Pay to0x0eba5d314f4f5dcb7a094953fa9311a45172dd1b
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Gblin & similar services