{"uid":"cap_V1R6Pa83IM06zAOIH8u9W","slug":"wallet-portfolio-balance-check-base-chain-14885b7d","name":"Wallet Portfolio Balance Check (Base Chain)","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/wallet-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_z1bQ0eI7T-Vecady1wC3T","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, gas affordability, and x402 payment capability for a given Base wallet address","exampleAgentPrompt":"Check wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base — tell me its ETH and USDC balances, whether it can cover gas for an ERC20 transfer, and whether it's set up to make x402 micropayments.","exampleUseCases":[{"title":"Agent self-check before paying","prompt":"Before I execute this next step, check my agent wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base to make sure it has enough ETH for gas and enough USDC to make an x402 micropayment."},{"title":"Counterparty wallet due diligence","prompt":"I'm about to send USDC to wallet 0xAbC1234567890abcdef1234567890ABCDEF12345 — first check if that address has any activity on Base and what its current ETH and USDC balances are."},{"title":"Monitor agent wallet funding status","prompt":"Tell me if my trading bot's wallet 0xDEADBEEF0000000000000000000000000000DEAD is running low on ETH or USDC on Base so I know if I need to top it up before it runs its next trade."}],"resultDescription":"A JSON object containing: ETH balance (float), USDC balance (float), chain name ('base'), wallet nonce (integer), a boolean indicating whether the wallet can pay gas for an ERC20 transfer, a boolean indicating whether it can pay x402 micropayments, and the estimated gas cost in ETH for an ERC20 transfer.","failureModes":["Invalid wallet address format (not matching ^0x[0-9a-fA-F]{40}$) — returns validation error","Wallet address not found or has zero activity — returns zeroed balances rather than error","x402 payment failure if calling agent lacks USDC to pay the $0.003 fee — returns 402 Payment Required","RPC/node connectivity issues on Base chain causing stale or unavailable data","Rate limiting or worker capacity limits under high load"],"whenToPreferThis":"Use this endpoint when an AI agent needs a fast, no-API-key balance and gas-readiness check for a Base chain wallet, especially in x402-enabled autonomous agent pipelines. Ideal for pre-flight checks before executing onchain transactions, validating counterparty wallets before payment, or monitoring agent wallet funding levels. Prefer this over full blockchain explorers when you only need balance + gas + x402 affordability signals in a single lightweight call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:59.750Z","isFirstParty":false,"canonicalSlug":"wallet-portfolio-balance-check-base-chain-14885b7d"}