{"uid":"cap_iXtddu_ZRjQpHAHuHFDYU","slug":"crypto-microdata-wallet-portfolio-x402-e9241a49","name":"Crypto Microdata – Wallet Portfolio (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/api/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_9xVXlJOsYTeetyFKsRcaR","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, payable via USDC micropayment.","exampleAgentPrompt":"Can you check the wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base and tell me its ETH and USDC balances, whether it can pay gas, and if it's set up for x402 micropayments?","exampleUseCases":[{"title":"Pre-flight agent wallet check","prompt":"Before my trading bot executes the next swap, check wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base — does it have enough ETH for gas and enough USDC to cover x402 API calls?"},{"title":"Onchain agent funding monitor","prompt":"I need to know if my agent wallet 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 is still funded — what's the current ETH and USDC balance on Base and can it still pay for micropayment API calls?"},{"title":"New wallet readiness verification","prompt":"I just funded a new Base wallet at 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 — can you confirm whether it has enough ETH to pay gas and USDC to start making x402 payments?"}],"resultDescription":"A JSON object containing: the chain name ('base'), the queried wallet address, ETH balance (float), USDC balance (float), wallet nonce (integer), a boolean indicating whether the wallet can pay gas (can_pay_gas), a boolean indicating whether the wallet can pay x402 micropayments (can_pay_x402), and the estimated ETH cost of an ERC20 transfer (gas_cost_erc20_transfer_eth).","failureModes":["Invalid wallet address format returns a validation error (must match ^0x[0-9a-fA-F]{40}$)","Missing wallet query parameter returns a 400 bad request","Insufficient USDC payment for x402 toll returns a 402 Payment Required before data is served","Cloudflare Worker cold start may add minor latency","Wallet with zero balances returns all zeros but no error"],"whenToPreferThis":"Use this endpoint when an AI agent on Base needs a lightweight, no-API-key pre-flight check of a wallet's ETH gas reserves, USDC holdings, nonce, and x402 payment readiness before executing onchain transactions or calling other pay-per-call microdata APIs. It is ideal for agentic loops that need to self-assess funding status cheaply ($0.003 USDC per call) without a traditional API subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:26.506Z","isFirstParty":false,"canonicalSlug":"crypto-microdata-wallet-portfolio-x402-e9241a49"}