G

Gblin · Health

by Gblin

GETBase

$0.002

per call · USD Coin on Base

Wallet treasury health: GBLIN/USDC/ETH balances, gas runway, and rebalance recommendation. Critical for autonomous decision-making.

Endpoint

GET https://gblin.digital/api/x402/health

3

Calls / 30d

1

Unique payers / 30d

Aug 30

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/health", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://gblin.digital/api/x402/health?daily_burn=1.5&wallet=0x0000000000000000000000000000000000000001" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "balances": {
    "eth": "0.001234",
    "eth_value_usd": 4.2562,
    "gblin": "42.123456",
    "gblin_value_usd": 51.987654,
    "total_usd": 59.7438,
    "usdc": "3.500000"
  },
  "cooldown": {
    "active": false,
    "last_deposit_unix": 1747500000,
    "seconds_remaining": 0
  },
  "gas_health": {
    "eth_balance": "0.001234",
    "status": "sufficient",
    "warning": null
  },
  "ratios": {
    "gblin_pct": 87.02,
    "usdc_pct": 5.86
  },
  "recommendation": {
    "action": "hold",
    "reasoning": "Low burn rate ($1.5/day): maximize GBLIN exposure (90%) for treasury yield. JIT-swap on demand.",
    "runway_days": 2,
    "target_gblin_pct": 90,
    "target_usdc_pct": 10
  },
  "wallet": "0x0000000000000000000000000000000000000001"
}

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