{"uid":"cap_W9maAuJwt_E4ckpkFhbV5","slug":"riley-craig-x402-agent-store-on-chain-contract-call-9fb0410c","name":"Riley Craig x402 Agent Store — On-Chain Contract Call","description":"Simulate any read-only Ethereum contract call via eth_call — pass a contract address and encoded calldata, get the raw return value, across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. The universal contract-read primitive for agents that need a view function not covered by a dedicated endpoint. Live public RPC; one paid call at $0.001.","url":"https://x402-agent-store.rileycraig14.workers.dev/chain/call","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["to","data"],"properties":{"to":{"type":"string","description":"Contract address (0x...)"},"data":{"type":"string","description":"ABI-encoded calldata (0x...)"},"chain":{"type":"string","description":"base|ethereum|optimism|arbitrum|polygon|gnosis (default base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"to":"0x...","chain":"base","result":"0x000...0020758c6"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.09","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.09/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.09","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RDx1sPgtsraKvoX89ynAm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.09","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 ABI-encoded call against a smart contract on any supported EVM chain and returns the raw hex result, payable per-call in USDC via x402.","exampleAgentPrompt":"Call the balanceOf function on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum with my ABI-encoded calldata 0x70a082310000000000000000000000001234567890abcdef1234567890abcdef12345678 and return the raw result.","exampleUseCases":[{"title":"Check token balance across chains","prompt":"I need to check my USDC balance on both Ethereum and Arbitrum right now. Can you call the balanceOf function on those contracts and tell me how much I have on each chain?"},{"title":"Verify NFT ownership on-chain","prompt":"Look up the ownerOf function on the Pudgy Penguins contract on Base to see if wallet 0x742d35Cc6634C0532925a3b844Bc021e4e5f1a84 owns token ID 5678, and give me back the raw result."},{"title":"Monitor governance proposal voting status","prompt":"I want to check the current voting results on a proposal. Can you call the getVotes function on our governance token contract on Polygon at 0x1234567890123456789012345678901234567890 for my wallet address and tell me how many votes it shows?"}],"resultDescription":"A JSON object containing the target contract address ('to'), the chain name ('chain'), and the raw ABI-encoded hex return value ('result') from the contract call, e.g. {\"to\":\"0x...\",\"chain\":\"base\",\"result\":\"0x000...0020758c6\"}.","failureModes":["Invalid or malformed contract address returns an error","Malformed or invalid ABI-encoded calldata causes a revert or decode error","Unsupported chain identifier returns a validation error","Contract reverts the call (view function throws) returns an error result","Insufficient USDC payment via x402 results in HTTP 402 payment required","Network or RPC node unavailability causes a timeout or 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to read on-chain state from any EVM-compatible smart contract (Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis) without managing RPC infrastructure, API keys, or node providers. It is ideal for agents that already have ABI-encoded calldata ready and want a pay-per-call, keyless approach via x402 micropayments. Prefer this over self-hosted RPC calls when avoiding key management is a priority.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:15.623Z","isFirstParty":false}