{"uid":"cap_Jl-zXx9_5swMw0K1prYdc","slug":"saylor-innovations-on-chain-lookups-ethereum-eth-call-b9585b5f","name":"Saylor Innovations On-Chain Lookups — Ethereum eth_call","description":"Ethereum read-only contract call (eth_call) - return data, with reverts reported cleanly","url":"https://saylorinnovations.com/api/evm/ethereum/call/:address?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","pathParams","queryParams"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"pathParams":{"type":"object","required":["contract"],"properties":{"contract":{"type":"string","description":"0x contract (path)"}}},"queryParams":{"type":"object","required":["data"],"properties":{"data":{"type":"string","description":"0x ABI-encoded calldata (query)"},"from":{"type":"string","description":"optional 0x caller (query)"},"block":{"type":"string","description":"optional block number or latest (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","contract","reverted"],"properties":{"chain":{"type":"string","description":"Blockchain the data is for"},"error":{"type":["string","null"],"description":"Error message, if any"},"result":{"type":["string","null"],"description":"Result of the operation"},"contract":{"type":"string","description":"Contract address"},"reverted":{"type":"boolean","description":"True when the call reverts"},"revert_data":{"type":"null","description":"Raw revert data returned by the call, if it reverted"}},"additionalProperties":true},"description":{"type":"string"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_4-WK_D9G4mhkyfWOw_oig","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a read-only smart contract call (eth_call) on Ethereum mainnet given a contract address and ABI-encoded calldata, returning the decoded result or revert status.","exampleAgentPrompt":"Call the ERC-20 balanceOf function on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet — the calldata should be ABI-encoded for my wallet address 0x1234...abcd.","exampleUseCases":[{"title":"Check ERC-20 token balance on-chain","prompt":"What's the USDC balance of wallet 0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe on Ethereum? Call the balanceOf function on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48."},{"title":"Read DeFi protocol reserve data","prompt":"Query the Uniswap V2 pair contract at 0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc on Ethereum to get the current reserves — use the getReserves() view function."},{"title":"Verify NFT ownership on Ethereum","prompt":"Check who owns token ID 42 on the Bored Ape Yacht Club contract at 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum — call ownerOf with the ABI-encoded token ID."}],"resultDescription":"Returns a JSON object with the chain name, contract address, the raw hex result of the call (or null), a boolean indicating if the call reverted, and an optional error string if something went wrong.","failureModes":["Contract call reverts — reverted: true with error message describing the revert reason","Invalid or malformed ABI-encoded calldata — likely returns error or unexpected result","Contract address does not exist on Ethereum mainnet — may return empty result or error","Malformed address in URL path — 400-level error or error field populated","Network or RPC timeout — upstream Ethereum node unavailability"],"whenToPreferThis":"Choose this endpoint when you need to read state from a specific Ethereum mainnet smart contract using a view or pure function without sending a transaction. Ideal for fetching token balances, reading DeFi protocol parameters, checking NFT ownership, or any stateless eth_call. Prefer it over general-purpose RPC providers when you need a simple HTTP GET interface with per-call micropayment pricing and no API key setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T23:47:36.263Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-on-chain-lookups-ethereum-eth-call-b9585b5f"}