{"uid":"cap_tsouCcsRjlLj4OtTZeAwv","slug":"tollex-chain-gas-estimator-362e64ae","name":"Tollex Chain Gas Estimator","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_estimate_gas?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"data":{"type":"string","pattern":"^0x[0-9a-fA-F]*$","maxLength":200000},"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"value":{"type":"string","pattern":"^[0-9]{1,78}$"}}},"responseSchema":{"type":"json","example":{"tool":{"id":"chain_estimate_gas","version":"1.0.0","provider":"tollex.robinhood-chain"},"result":{"gas":"61021","baseFeePerGas":"10000000","estimatedCostWei":"610210000000","maxPriorityFeePerGas":"0"},"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_qWdNo3BeUtxd-sPGiq6oU","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":"Estimates gas cost for an EVM transaction on a blockchain before it is submitted","exampleAgentPrompt":"Before I submit this contract call, estimate how much gas it will use — the call goes from 0xAbC1234567890abcdef1234567890abcdef123456 to 0xDef9876543210fedcba9876543210fedcba987654 with calldata 0xa9059cbb000000000000000000000000abc and a value of 0.","exampleUseCases":[{"title":"Pre-flight check before token transfer","prompt":"I'm about to send a USDC transfer on Base — can you estimate the gas before I actually submit it? The sender is 0xAbC1234567890abcdef1234567890abcdef123456, recipient is 0xDef9876543210fedcba9876543210fedcba987654, and the calldata is 0xa9059cbb00000000000000000000000012345."},{"title":"Gas budgeting for DeFi swap","prompt":"Estimate the gas units for this DEX swap call so I can decide if fees are worth it right now — from 0xAaaa1111aaaa1111aaaa1111aaaa1111aaaa1111 to the router at 0xBbbb2222bbbb2222bbbb2222bbbb2222bbbb2222 with calldata 0x38ed173900000000000000000000000099 and value 1000000000000000000."},{"title":"Smart contract deployment gas check","prompt":"Before I deploy this contract, can you tell me how much gas the deployment transaction will consume? From address is 0xCccc3333cccc3333cccc3333cccc3333cccc3333, no to address, and the bytecode data is 0x6080604052348015610010..."}],"resultDescription":"Returns an estimated gas units figure representing how much gas the specified EVM transaction would consume if submitted to the chain, enabling cost planning before actual submission.","failureModes":["Invalid Ethereum address format for 'to' or 'from' — must match 0x hex pattern","Malformed or oversized calldata exceeding 200000 character limit","Node or RPC unavailability causing estimation timeout","Revert simulation — if the transaction would revert on-chain, gas estimation may fail or return an error","Missing required fields causing schema validation errors"],"whenToPreferThis":"Use this endpoint when you need to estimate EVM transaction gas before committing to a submission, especially in agent pipelines where cost control and policy checks matter. Prefer Tollex's estimator when operating within the Tollex economic control plane so gas estimation integrates naturally with its payment and policy layer. Useful for any agent that needs to budget gas costs, gate transactions on fee thresholds, or audit expected costs before spending real funds.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:48:13.518Z","isFirstParty":false,"canonicalSlug":"tollex-chain-gas-estimator-362e64ae"}