{"uid":"cap_DrNx9dETS655NQL7gWXtH","slug":"agent-data-tools-revmesh2074-workers-dev-eth-call-ink-network-9030bbbb","name":"Eth Call – Ink Network Contract Read","description":"eth_call: read-only contract call on Ink 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/ink/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_RsSpHUNQ59mXrh4jFOzuS","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 Ink (Kraken L2) blockchain, returning raw ABI-encoded output from any view or pure contract function without submitting a transaction.","exampleAgentPrompt":"Can you call the totalSupply view function on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ink — use calldata 0x18160ddd — and tell me the raw result?","exampleUseCases":[{"title":"Read ERC-20 total supply on Ink","prompt":"Call the totalSupply function on the token contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ink using selector 0x18160ddd and give me the raw hex result so I can decode the supply."},{"title":"Check wallet balance via balanceOf","prompt":"I need to read the balanceOf for address 0xABCD1234... from an ERC-20 contract at 0x1234ABCD... on Ink — the calldata is 0x70a08231000000000000000000000000ABCD1234.... Can you make that eth_call and return the raw output?"},{"title":"Query custom view function on DeFi contract","prompt":"There's a lending protocol on Ink at 0xDEF456... with a view function getReserveLiquidity — the ABI-encoded calldata is 0xa415bcad... — can you call it and give me the raw returned bytes?"}],"resultDescription":"Returns a JSON object containing the hex-encoded result of the contract call (`result`), the block number at which the call was executed (`block`), the chain name (`chain`), the chainId, the number of result bytes (`resultBytes`), and echoed-back `to` and `data` fields. If the call reverts, returns HTTP 422 with the revert reason (and no charge).","failureModes":["422 Unprocessable Entity — contract call reverted; response includes revert reason string","Invalid `to` address format — malformed hex address causes a 400 error","Invalid `data` field — malformed or truncated calldata may cause revert or bad decode","Contract does not exist at address — call returns empty bytes (0x)","Calldata exceeds 8 KB limit — rejected before execution","Network latency or Ink RPC unavailability — may return 5xx temporarily"],"whenToPreferThis":"Use this endpoint when you need to read any arbitrary view or pure function on the Ink (Kraken L2) blockchain that does not have a dedicated higher-level tool available. It is ideal for reading token state (balances, supplies, allowances), querying DeFi protocol variables, or verifying contract state without broadcasting a transaction. Prefer dedicated endpoints (e.g. token supply or NFT balance tools) for common ERC-20/721 calls; use this for custom or less common contract functions on Ink specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:52:56.799Z","isFirstParty":false,"canonicalSlug":"agent-data-tools-revmesh2074-workers-dev-eth-call-ink-network-9030bbbb"}