{"uid":"cap_CAlDLx_fmUcmC2xoYy0j-","slug":"agent-data-tools-revmesh2074-workers-dev-eth-call-celo-contract-read-b67be1f5","name":"Eth Call – Celo Contract Read (eth_call)","description":"eth_call: read-only contract call on Celo at the latest block, without a transaction or gas: send ABI-encoded calldata, or a function signature such as balanceOf(address) with args and the call is encoded and its result decoded for you. Use to read any view function that has no dedicated tool (the example reads USDC totalSupply). Calldata up to 8 KB; a call that reverts is 422 with the reason, uncharged.","url":"https://agent-data-tools.revmesh2074.workers.dev/celo/call?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["to","data"],"properties":{"to":{"type":"string","description":"0x contract address to call"},"args":{"type":"string","description":"Arguments for a function signature in data: comma separated, or a JSON array for arrays and tuples"},"data":{"type":"string","description":"0x ABI-encoded calldata (4-byte selector plus arguments), or a function signature: totalSupply(), balanceOf(address), or with its result types, balanceOf(address) returns (uint256)"},"from":{"type":"string","description":"Optional 0x sender address for calls that check msg.sender"},"returns":{"type":"string","description":"Result types to decode when data is a signature without them, for example uint256 or address,uint8"}}},"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":["x402"],"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_FWYWUDK9-b4_X6hMQINz1","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 Celo blockchain, sending ABI-encoded calldata to any contract and returning raw hex result data without creating a transaction.","exampleAgentPrompt":"Call the USDC contract on Celo at 0xcebA9300f2b948710d2653dD7B07f33A8B32118C with calldata 0x18160ddd to read its totalSupply, and give me the raw hex result.","exampleUseCases":[{"title":"Read ERC-20 total supply on Celo","prompt":"What is the total supply of USDC on Celo? The contract is 0xcebA9300f2b948710d2653dD7B07f33A8B32118C — use selector 0x18160ddd to call totalSupply and return the raw result."},{"title":"Check token balance of a wallet on Celo","prompt":"Read the CELO token balance of wallet 0xAbCd1234abcd1234abcd1234abcd1234abcd1234 from the token contract 0x471EcE3750Da237f93B8E339c536989b8978a438 on Celo — encode balanceOf with that address as the argument and give me the hex result."},{"title":"Query DeFi protocol state on Celo","prompt":"I need to read the reserve data from a lending protocol on Celo — call contract 0x3116851604E42c2919093Ca6Dc44aa2AaB09B6B with calldata 0x35ea6a75000000000000000000000000765de816845861e75a25fca122bb6898b8b1282a and tell me what the contract returns."}],"resultDescription":"Returns a JSON object containing the raw hex-encoded return data from the contract call (result), the block number at which the call was made (block), the chain name ('celo'), the chain ID, and the byte length of the result. If the contract call reverts, returns HTTP 422 with the revert reason; failed calls are not charged.","failureModes":["422 with revert reason if the contract call reverts (not charged)","Invalid or non-contract 'to' address returns an error","Malformed ABI-encoded calldata (wrong selector or argument encoding) causes revert or garbage result","Calldata exceeding 8 KB is rejected","Network or RPC node timeouts may return 5xx errors"],"whenToPreferThis":"Use this endpoint when you need to read any view or pure function on a Celo smart contract that does not have a dedicated tool. Ideal for arbitrary contract reads — especially ERC-20 functions like totalSupply, balanceOf, allowance, or any custom getter — when you already have the function selector and can ABI-encode the arguments. Choose Celo-specific alternatives for Ethereum, Base, Arbitrum, Optimism, or Polygon.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:40:23.322Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-eth-call-celo-contract-read-b67be1f5"}