{"uid":"cap_w4QXCZupQNOnNLFWmaTyQ","slug":"onesource-ethereum-rpc-eth-call-ca0c9e7f","name":"OneSource Ethereum RPC eth_call","description":"Simulate a read-only Ethereum contract call via eth_call - no transaction sent","url":"https://api.onesource.io/api/chain/call","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"data":{"type":"string","pattern":"^0x[a-fA-F0-9]+$"},"from":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"value":{"type":"string","pattern":"^0x[a-fA-F0-9]+$"}}},"responseSchema":{"type":"json","example":{"data":{"result":"0x000000000000000000000000000000000000000000000000000000000000002a"},"meta":{"endpoint":"/api/chain/call","cost_usdc":"0.001","request_id":"00000000abcdef01","payment_chain":"base","payment_token":"USDC"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Pwe5JSSDXrRajadGmN_fn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a raw Ethereum eth_call against a contract on mainnet or Sepolia testnet, returning the encoded result","exampleAgentPrompt":"Call the balanceOf function on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 for my wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on Ethereum mainnet — give me the raw encoded result.","exampleUseCases":null,"resultDescription":"A JSON object with a 'result' field containing the ABI-encoded hex return value from the contract call (e.g. '0x000000000000000000000000000000000000000000000000000000000000002a'), which the agent can decode according to the function's return type.","failureModes":["Invalid contract address format — 400 with schema validation error","Malformed calldata hex — 400 rejection","Contract reverts — result may be 0x or execution reverted error","Payment not attached or insufficient — 402 Payment Required","Network or node unavailability — 503 or timeout","Calling a non-existent function selector — returns 0x or revert"],"whenToPreferThis":"Use this endpoint when you need to read state from any Ethereum smart contract by sending raw ABI-encoded calldata and getting back the encoded result, especially when you already have the function selector and encoded parameters. Prefer this over higher-level contract introspection endpoints when you need to call arbitrary view or pure functions beyond standard ERC20/721 metadata. It requires no API key and accepts micropayments via x402 (USDC on Base) or MPP (Tempo).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:00:48.304Z","isFirstParty":false}