{"uid":"cap_UNHvmbWuAoVanKQnmvlsc","slug":"crypto-wallet-balance-gas-checker-base-via-x402-a85cdc61","name":"Crypto Wallet Balance & Gas Checker (Base) via x402","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/crypto/wallet?utm_source=zero.xyz","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","pattern":"^0x[0-9a-fA-F]{40}$","examples":["0xe4be4d0bd82d8e68203deff81f79ede0529f2617"],"description":"Wallet"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"eth":0,"usdc":0.079,"chain":"base","nonce":0,"wallet":"0xe4be4d0bd82d8e68203deff81f79ede0529f2617","can_pay_gas":false,"can_pay_x402":true,"gas_cost_erc20_transfer_eth":4e-7}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7zqhRiG7BH4y2oAwTJeCX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns ETH balance, USDC balance, nonce, and gas-affordability flags for a given Base wallet address, payable per-call in USDC via x402.","exampleAgentPrompt":"Before sending that USDC payment, check if my wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base has enough ETH for gas and enough USDC to cover an x402 micropayment.","exampleUseCases":[{"title":"Agent self-check before onchain payment","prompt":"Check whether my agent wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 has enough ETH to cover gas and at least $0.003 USDC before it tries to make an x402 call."},{"title":"Counterparty wallet verification","prompt":"Before I send funds to 0xAbCd1234567890abcdef1234567890abcdef1234 on Base, can you check their ETH and USDC balances and tell me if they look like an active wallet?"},{"title":"Underfunded agent wallet alert","prompt":"My trading bot uses wallet 0xDeAdBeEf000000000000000000000000DeAdBeEf — can you check if it still has enough ETH to pay gas and flag it if it can't afford even one ERC-20 transfer?"}],"resultDescription":"Returns a JSON object with: ETH balance (float), USDC balance (float), chain name ('base'), transaction nonce (int), boolean can_pay_gas (whether ETH covers a typical ERC-20 transfer), boolean can_pay_x402 (whether USDC balance covers a $0.003 micropayment), and gas_cost_erc20_transfer_eth (estimated ETH cost of one ERC-20 transfer).","failureModes":["Invalid wallet address format (not matching ^0x[0-9a-fA-F]{40}$) returns a 400/422 error","Payment not received or x402 handshake failure returns 402 Payment Required","RPC backend timeout or Base network outage may cause 503 or timeout","Wallet with zero activity still returns valid response but with eth=0, usdc=0, nonce=0","Missing 'wallet' query param returns a 400 Bad Request"],"whenToPreferThis":"Use this endpoint when your agent needs a quick, no-API-key balance and gas-feasibility check for any Base wallet before executing a transaction or x402 payment. Prefer this over general blockchain explorers when you need structured, machine-readable output with pre-computed affordability flags (can_pay_gas, can_pay_x402) rather than raw RPC data. Ideal for autonomous trading or payment agents that need to gate actions on wallet solvency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:22.214Z","isFirstParty":false,"canonicalSlug":"crypto-wallet-balance-gas-checker-base-via-x402-a85cdc61"}