{"uid":"cap_nT6evNfuMXvg0-39kKB19","slug":"agent-data-tools-revmesh2074-workers-dev-base-contract-call-eth-call-ff04608a","name":"Base Contract Call (eth_call)","description":"Read-only contract call on Base (eth_call): send ABI-encoded calldata to a contract at the latest block and get the raw return data, without a transaction or gas. Use to read any view function that has no dedicated tool (the example reads USDC totalSupply, selector 0x18160ddd); decode the result with the function's ABI. Calldata up to 8 KB; a call that reverts is 422 with the reason, uncharged.","url":"https://agent-data-tools.revmesh2074.workers.dev/base/call?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["to","data"],"properties":{"to":{"type":"string","description":"0x contract address to call"},"data":{"type":"string","description":"0x ABI-encoded calldata: 4-byte selector plus arguments"},"from":{"type":"string","description":"Optional 0x sender address for calls that check msg.sender"}}},"responseSchema":{"type":"object","properties":{"to":{"type":"string"},"data":{"type":"string"},"block":{"type":"number"},"chain":{"type":"string"},"result":{"type":"string"},"chainId":{"type":"number"},"resultBytes":{"type":"number"}}},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0.01","displayCostAsset":"USD","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__4MdxxWniDBvgcCyKfEwg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":"agent-data-tools.revmesh2074.workers.dev","brandSlug":"agent-data-tools-revmesh2074-workers-dev-x402","brandBaseUrl":"https://agent-data-tools.revmesh2074.workers.dev","brandDocsUrl":null,"whatItDoes":"Executes a read-only eth_call on the Base blockchain, sending ABI-encoded calldata to any contract and returning raw return data without a transaction.","exampleAgentPrompt":"Call the USDC contract on Base at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 using the totalSupply selector 0x18160ddd and tell me the raw result so I can decode it.","exampleUseCases":[{"title":"Read ERC-20 token total supply","prompt":"Can you call the totalSupply function on the USDC contract on Base — the address is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, selector is 0x18160ddd — and give me back the raw hex result?"},{"title":"Check allowance for DeFi protocol","prompt":"I need to read the allowance a wallet has granted to Uniswap on Base. Call the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 with ABI-encoded calldata for allowance(0xMyWallet, 0xUniswapRouter) and return the raw result."},{"title":"Query custom contract view function","prompt":"My NFT staking contract on Base is at 0xDeAdBeEf1234567890abcdef1234567890abcdef — call it with selector 0xabc12345 and argument 0x000...0001 to read the pending rewards for token ID 1, and give me the hex return value."}],"resultDescription":"Returns a JSON object containing the hex-encoded raw return data from the contract call (result), the block number at which the call was made, the chain name ('base'), the chain ID, the contract address called (to), the calldata sent (data), and the byte length of the result. The caller must decode the result using the function's ABI.","failureModes":["Contract call reverts: HTTP 422 with the revert reason string (not charged)","Invalid or non-existent contract address: 422 or empty result","Malformed calldata (wrong selector or encoding): 422 revert or garbage return data","Calldata exceeds 8 KB limit: request rejected","Network or RPC node unavailability: 5xx error"],"whenToPreferThis":"Use this endpoint when you need to read any view or pure function on a Base smart contract that has no dedicated tool available. It is the generic fallback for any Base on-chain read — ideal when you already know the ABI and can construct calldata manually. Prefer dedicated balance or NFT tools when they exist; use this for custom contracts, less common selectors, or multi-argument calls that require raw calldata control.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T05:40:26.636Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-base-contract-call-eth-call-ff04608a"}