{"uid":"cap_8XZS58Eh4I6scP58WM5Se","slug":"liquid-agent-transaction-preflight-base-c312b3f8","name":"Liquid Agent Transaction Preflight (Base)","description":"Base transaction preflight: simulate an unsigned transaction, estimate gas and an indicative USDC sponsorship price. No signing or broadcast. $0.005 per completed preflight, including a decoded revert.","url":"https://api.liquidagent.ai/v1/gas/preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","description":"Contract or wallet address to call"},"data":{"type":"string","default":"0x","description":"0x calldata, up to 16 KiB"},"from":{"type":"string","description":"Optional msg.sender for the simulation; defaults to the zero address"},"value":{"type":"string","default":"0","description":"Native ETH value in wei as a decimal or hex string"}}},"responseSchema":{"type":"json","example":{"chainId":8453,"success":true,"gasEstimate":"50000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_FV-4Y_Q7wJIlsBPnI3_4r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates an unsigned Ethereum Base transaction to estimate gas usage and an indicative USDC sponsorship price, without signing or broadcasting.","exampleAgentPrompt":"Before I send this transaction, can you preflight it on Base — the target contract is 0xAbC...123, the calldata is 0xa9059cbb000...001, and I'm sending 0 ETH — and tell me the estimated gas and USDC sponsorship price?","exampleUseCases":[{"title":"Pre-send revert check for DeFi swap","prompt":"I'm about to call a Uniswap contract on Base with this calldata: 0x414bf389...abc — can you simulate it from my wallet 0xDEF...789 with 0 ETH value and tell me if it'll revert and what the gas estimate is?"},{"title":"Gas cost estimation before token transfer","prompt":"Before I submit this ERC-20 transfer on Base, can you run a preflight simulation? The contract is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, calldata is 0xa9059cbb...0001, from address 0xABC...111, and value is 0."},{"title":"USDC sponsorship price for contract deployment","prompt":"I want to know the indicative USDC gas sponsorship cost before deploying my contract on Base — can you preflight the transaction with this deploy calldata 0x6080604052...0000 sent from 0x0000...0001 with 0 ETH value?"}],"resultDescription":"Returns a simulation result including estimated gas usage, an indicative USDC sponsorship price for the transaction, and if the transaction would revert, a decoded revert reason — all without signing or broadcasting anything to the network.","failureModes":["Invalid or malformed contract address returns a validation error","Calldata exceeding 16 KiB is rejected","Invalid hex-encoded calldata returns a parse error","Simulation fails if the target contract does not exist on Base","Unreachable or rate-limited Base RPC node may cause timeout","Ambiguous value format (non-decimal, non-hex) may cause parsing error"],"whenToPreferThis":"Choose this endpoint when you need to validate or estimate gas for an unsigned transaction on the Base chain before committing it, especially when you want an indicative USDC gas sponsorship price alongside the gas estimate. It is ideal for agents that need to preflight smart contract calls, catch reverts before broadcasting, or budget transaction costs in USDC — without any signing or on-chain side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T00:40:13.762Z","isFirstParty":false,"canonicalSlug":"liquid-agent-transaction-preflight-base-c312b3f8"}