{"uid":"cap_I61l7LQoonFcVUZXvUt84","slug":"base-rpc-json-rpc-gateway-x402-pay-per-call-a04144d7","name":"Base RPC JSON-RPC Gateway (x402 Pay-per-Call)","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/base?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","properties":{"method":{"type":"string","examples":["eth_blockNumber","eth_getBalance","eth_call"],"description":"JSON-RPC method (default eth_blockNumber)"},"params":{"type":"string","examples":["[]","[\"0xe4be4d0bd82d8e68203deff81f79ede0529f2617\",\"latest\"]"],"description":"URL-encoded JSON array of params (default [])"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":1,"chain":"base","result":"0x32c8f1a","jsonrpc":"2.0","chain_id":8453,"upstream":"https://base.drpc.org","latency_ms":84}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.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_yKc4iRlEdH3R480hzsf1O","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":"Proxies JSON-RPC calls to the Base blockchain (e.g. eth_blockNumber, eth_getBalance, eth_call) with micropayment access via x402/USDC on Base — no API key required.","exampleAgentPrompt":"What's the current block number on Base? Use a pay-per-call RPC — no API key needed, just run eth_blockNumber.","exampleUseCases":[{"title":"Check wallet balance on Base","prompt":"Can you check the ETH balance of wallet address 0xe4be4d0bd82d8e68203deff81f79ede0529f2617 on Base using a pay-per-call RPC?"},{"title":"Read onchain contract state","prompt":"Call the Base RPC with eth_call to read the totalSupply from the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 — use the micropayment gateway, no API key."},{"title":"Monitor latest Base block for trading agent","prompt":"Fetch the latest block number on Base right now so my trading agent knows whether the chain is live and up to date."}],"resultDescription":"A JSON-RPC 2.0 response object containing the result of the requested method (e.g. block number as hex, balance in wei, or eth_call return data), plus metadata: chain ('base'), chain_id (8453), upstream URL (base.drpc.org), and latency in milliseconds.","failureModes":["Invalid or unsupported JSON-RPC method returns an error object","Malformed params array causes parse/invalid-params error","Payment failure (insufficient USDC balance) results in 402 response before the call is executed","Upstream dRPC timeout or outage returns latency spike or 5xx","Missing required 'method' query param falls back to eth_blockNumber silently"],"whenToPreferThis":"Choose this endpoint when your AI agent needs raw Base blockchain JSON-RPC access without managing an API key or subscription — ideal for autonomous agents that pay per call with USDC via x402. Best for lightweight, real-time onchain lookups (balances, block numbers, contract reads) on Base L2 where a traditional RPC provider account is impractical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:24.608Z","isFirstParty":false,"canonicalSlug":"base-rpc-json-rpc-gateway-x402-pay-per-call-a04144d7"}