{"uid":"cap_TPPEe3njv0wpklSn3uGQ5","slug":"tollex-chain-contract-read-783589d0","name":"Tollex Chain Contract Read","description":"Tollex lets software agents buy APIs and tools under rules you set: it finds a capability that fits, checks your policy before anything is signed, pays with x402 in USDC on Base or USDG on Robinhood Chain, reconciles uncertain payments and returns a signed receipt.","url":"https://api.tollex.org/tools/chain_contract_read?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"args":{"type":"array","maxItems":10},"address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"signature":{"type":"string","pattern":"^function [A-Za-z0-9_]+\\(.*\\) (external |public )?(view|pure) returns \\(.*\\)$","examples":["function balanceOf(address) view returns (uint256)"],"maxLength":300}}},"responseSchema":{"type":"json","example":{"tool":{"id":"chain_contract_read","version":"1.0.0","provider":"tollex.robinhood-chain"},"result":{"result":"1000000000"},"evidence":[],"untrustedOutput":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0079","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.0079/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0079","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pRnCtnicVKcJudhlh5bNs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0079","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reads a view or pure function from an on-chain smart contract by calling it with specified arguments and returning the result.","exampleAgentPrompt":"Can you read the balanceOf function on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, passing my wallet address 0x1234567890abcdef1234567890abcdef12345678 as the argument?","exampleUseCases":[{"title":"Check ERC-20 token balance on-chain","prompt":"What is the USDC balance for wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 on the USDC contract at 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48? Use the balanceOf(address) view returns (uint256) function."},{"title":"Query DeFi protocol lending rate","prompt":"Call the getReserveData function on the Aave lending pool at 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9 with argument 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 — it's a view function that returns a tuple. I want to see the current borrow rate for USDC."},{"title":"Verify NFT ownership from contract","prompt":"Can you check who owns token ID 42 on the Bored Ape Yacht Club contract at 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D? The function is ownerOf(uint256) view returns (address)."}],"resultDescription":"Returns the decoded return value of the specified smart contract view or pure function, along with a signed receipt confirming the call was made and paid for via x402 in USDC on Base or USDG on Robinhood Chain.","failureModes":["Invalid contract address format (must be 0x-prefixed 40 hex chars) returns a validation error","Malformed function signature not matching the required pattern returns a schema rejection","Contract does not exist at the given address or the function reverts on-chain","Too many arguments provided (max 10) triggers input validation failure","Network congestion or RPC unavailability causes a timeout","Payment reconciliation failure if the x402 USDC payment cannot be confirmed"],"whenToPreferThis":"Use this endpoint when you need to read state from a deployed smart contract on Base or Robinhood Chain without writing to the chain. It is ideal for querying ERC-20 balances, NFT ownership, DeFi protocol parameters, or any other view/pure function. Prefer this over general-purpose RPC calls when you want automatic policy-gated payment handling and a signed receipt for auditing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:47:56.287Z","isFirstParty":false,"canonicalSlug":"tollex-chain-contract-read-783589d0"}