{"uid":"cap_MWN2DlLDE2YhWcS1WspeM","slug":"base-wallet-quick-check-eth-usdc-gas-bundle-bc5843a8","name":"Base Wallet Quick Check (ETH + USDC + Gas Bundle)","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/v1/portfolio?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_PrVSTuwTTwrUYcrpu3WjP","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, live ERC-20 transfer gas cost, and can_pay_gas/can_pay_x402 flags for a Base wallet in a single call.","exampleAgentPrompt":"Before you send that USDC payment, check wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base — I need to know its ETH and USDC balances, the current gas cost for an ERC-20 transfer, and whether it can actually pay gas and x402 fees.","exampleUseCases":[{"title":"Agent self-check before x402 payment","prompt":"Check my agent wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base and tell me if it has enough ETH for gas and enough USDC to cover an x402 micropayment before I proceed."},{"title":"Counterparty wallet pre-flight validation","prompt":"Before I send USDC to 0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B, quickly verify their Base wallet — check their ETH and USDC balances, their nonce, and whether they can receive a gas-paying ERC-20 transfer."},{"title":"Automated payment gateway wallet monitor","prompt":"Pull the current ETH balance, USDC balance, gas cost, and readiness flags for wallet 0x1234567890abcdef1234567890abcdef12345678 on Base so I can decide whether to top it up before the next scheduled payout."}],"resultDescription":"A JSON object containing: the wallet address, chain ('base'), native ETH balance, USDC balance, account nonce, live gas cost of an ERC-20 transfer in ETH, a can_pay_gas boolean (true if ETH covers gas), and a can_pay_x402 boolean (true if USDC balance is sufficient for an x402 payment).","failureModes":["Invalid wallet address format (not matching ^0x[0-9a-fA-F]{40}$) returns a validation error","Wallet exists but has zero balances — returns all zeroes with can_pay_gas=false and can_pay_x402=false (not an error, but may mislead if not distinguished from lookup failure)","Network congestion on Base may cause stale or slow gas estimates","Payment for the API call itself fails (insufficient USDC for x402 fee) — call is rejected before executing","Workers.dev service downtime returns 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need ETH balance, USDC balance, nonce, and gas cost for a Base wallet all at once and want to avoid 2-3 separate API calls. At $0.003 it is cheaper than calling eth-balance + erc20-balance + base-gas individually ($0.006 combined). Ideal for pre-payment checks in autonomous agent workflows, x402 payment pipelines, or any onchain automation that must confirm wallet readiness before executing a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:26.135Z","isFirstParty":false,"canonicalSlug":"base-wallet-quick-check-eth-usdc-gas-bundle-bc5843a8"}