{"uid":"cap_qb3W0JSVfmVLVlFDace_k","slug":"gblin-digital-2685538c","name":"GBLIN Wallet Treasury Health Check","description":"Wallet treasury health: GBLIN/USDC/ETH balances, gas runway, and rebalance recommendation. Critical for autonomous decision-making.","url":"https://gblin.digital/api/x402/health","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["wallet"],"properties":{"wallet":{"type":"string","description":"Agent 0x address"},"daily_burn":{"type":"string","description":"Optional average daily USD spend, used to compute runway"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ratios":{"usdc_pct":5.86,"gblin_pct":87.02},"wallet":"0x0000000000000000000000000000000000000001","balances":{"eth":"0.001234","usdc":"3.500000","gblin":"42.123456","total_usd":59.7438,"eth_value_usd":4.2562,"gblin_value_usd":51.987654},"cooldown":{"active":false,"last_deposit_unix":1747500000,"seconds_remaining":0},"gas_health":{"status":"sufficient","warning":null,"eth_balance":"0.001234"},"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_usdc_pct":10,"target_gblin_pct":90}}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"wallet":"0x1234567890123456789012345678901234567890","daily_burn":"20"}}},"response":{"ratios":{"usdc_pct":16.71,"gblin_pct":0},"wallet":"0x1234567890123456789012345678901234567890","balances":{"eth":"0.267694366943588739","usdc":"92.448861","gblin":"0","total_usd":553.3527,"eth_value_usd":460.9038,"gblin_value_usd":0},"cooldown":{"active":false,"last_deposit_unix":0,"seconds_remaining":0},"gas_health":{"status":"sufficient","warning":null,"eth_balance":"0.267694366943588739"},"recommendation":{"action":"rebalance_to_usdc","reasoning":"High burn rate ($20/day): hold larger USDC buffer (30%) to avoid forced liquidations.","runway_days":4,"target_usdc_pct":30,"target_gblin_pct":70}}},"exampleRequest":{"wallet":"0x1234567890123456789012345678901234567890","daily_burn":"20"},"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6cTbqesQb4YLJqUSE8Rxv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns GBLIN/USDC/ETH balances, gas runway estimate, and rebalance recommendation for an agent wallet address","exampleAgentPrompt":"Check the treasury health for my agent wallet 0x4a3b...c12f — I spend about $15 a day on average — tell me my GBLIN, USDC, and ETH balances, how much gas runway I have left, and whether I should rebalance.","exampleUseCases":null,"resultDescription":"Returns the queried wallet's GBLIN, USDC, and ETH token balances, a computed gas runway (in days) based on optional daily burn rate, and a rebalance recommendation indicating whether holdings should be adjusted for optimal treasury management.","failureModes":["Missing or malformed wallet address returns 400 bad request","Non-existent or zero-balance wallet may return empty balances with no rebalance signal","Payment not included or insufficient (x402 flow) returns 402 Payment Required","Network congestion or RPC issues may delay on-chain balance reads","Invalid daily_burn format returns validation error"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs to assess the financial health of its own wallet before taking on-chain actions, especially when managing GBLIN protocol positions. Ideal for pre-flight checks before swaps, treasury top-ups, or gas-sensitive operations. Prefer this over generic balance APIs when you specifically need GBLIN-aware rebalance recommendations and gas runway computation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:46:57.198Z","isFirstParty":false}