{"uid":"cap_bgFJs5B2sTC7Bwc_SB717","slug":"cra-agent-gas-fee-cost-estimator-888610a5","name":"CRA Agent Gas Fee Cost Estimator","description":"Cost in USDC of a transaction with the given gas at current and next base fee (?gas=21000)","url":"https://api.cra-agent.tech/v1/paid/fees/estimate","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":[],"properties":{"gas":{"type":"integer","example":21000,"description":"Gas the transaction would use."}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0005","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.0005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RvpD-X09eOVt_mAW7-wzJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0005","costPer":"request","priority":0,"asset":"0x3600000000000000000000000000000000000000","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the estimated transaction cost in USDC for a given amount of gas, calculated at the current and next predicted base fee","exampleAgentPrompt":"What would a standard ETH transfer using 21000 gas cost in USDC right now, and what will it cost at the next block's base fee?","exampleUseCases":[{"title":"Pre-flight transaction cost check","prompt":"Before I send this ETH transfer, tell me how much it'll cost in USDC — the transaction uses 21000 gas. Show me the current base fee price and what it'll be next block."},{"title":"Smart contract interaction cost estimate","prompt":"I'm about to call a contract that uses about 150000 gas — what's that going to cost me in USDC at today's base fee and the projected next block fee?"},{"title":"Fee-sensitive trade timing","prompt":"I want to know if now is a cheap time to transact — can you tell me what a 65000 gas transaction would cost in USDC at the current and next base fee?"}],"resultDescription":"Returns the estimated USDC cost of executing a transaction with the specified gas amount, evaluated at both the current base fee and the next projected base fee. This gives the user a real-time and forward-looking view of transaction costs denominated in USDC.","failureModes":["Missing or invalid gas parameter returns an error or default response","Gas value of 0 or negative integer may cause unexpected results","Stale base fee data if the underlying RPC source is lagging","Network congestion spikes may make the 'next base fee' estimate inaccurate","Rate limiting or payment failure if x402 payment not properly handled"],"whenToPreferThis":"Use this endpoint when you need a real-time USDC-denominated cost estimate for an Ethereum transaction given a specific gas amount. It is especially useful for pre-flight cost checks before submitting a transaction, or for helping users decide whether to transact now or wait based on next-block base fee projections. Prefer this over generic gas price APIs when you need the cost expressed in USDC rather than in Gwei or ETH.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T12:43:38.876Z","isFirstParty":false}