{"uid":"cap_U8QaCA4okFgbedPNTu3ld","slug":"brainiac-gas-estimation-api-d46dd3eb","name":"BRAINIAC Gas Estimation API","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/chain-data/gas/estimate?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]*$"},"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$"},"value":{"type":"string","pattern":"^0x[0-9a-fA-F]+$"}}},"responseSchema":{"type":"json","example":{"source":{"url":"https://mainnet.base.org","status":"OK"},"chainId":8453,"estimate":21000,"retrievedAt":"2026-11-07T12:08:59.407Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yAmJFrevUmGGct7-FiNA1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the gas cost for an Ethereum/EVM transaction given transaction parameters like to, from, data, and value","exampleAgentPrompt":"Can you estimate the gas needed for a transaction from 0xAbC1234...5678 to 0xDef9876...1234 with no calldata and a value of 0x0 on the EVM?","exampleUseCases":[{"title":"Pre-flight gas check for token transfer","prompt":"Before I send this ERC-20 transfer, estimate the gas cost — it's going from 0xSenderAddress to 0xRecipientAddress with the transfer calldata 0xa9059cbb... and zero ETH value."},{"title":"Smart contract interaction cost check","prompt":"I want to call a smart contract function — the target is 0xContractAddress, my wallet is 0xMyWallet, and the encoded calldata is 0x12345678abcd. How much gas should I expect this to use?"},{"title":"Budget planning for batch agent operations","prompt":"My agent is about to execute a series of on-chain transactions. Can you estimate the gas for one of them — from 0xAgentWallet to 0xTargetContract with calldata 0xdeadbeef and value 0x0 — so I can budget the fees?"}],"resultDescription":"A JSON response containing the estimated gas units required to execute the given EVM transaction. This allows callers to plan transaction fees, set gas limits, and avoid failed transactions due to under-estimation.","failureModes":["Invalid Ethereum address format for 'to' or 'from' — returns validation error","Malformed or non-hex 'data' or 'value' fields — returns schema error","Transaction would revert on-chain — estimation may fail or return an error indicating revert","Network congestion or RPC backend unavailability — may return 503 or timeout","Payment not received or insufficient USDC — returns 402 Payment Required before processing"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call gas estimate for an EVM transaction without setting up an account or managing API keys. Ideal for AI agents that need on-demand gas cost information as part of a broader transaction planning workflow. Prefer this over self-hosted RPC calls when you want zero infrastructure overhead and are already operating in an x402 micropayment context on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T00:34:46.135Z","isFirstParty":false,"canonicalSlug":"brainiac-gas-estimation-api-d46dd3eb"}