{"uid":"cap_qG8DYoqW91E70mcG2X_I_","slug":"liquid-agent-gas-preflight-batch-base-be374a9b","name":"Liquid Agent Gas Preflight Batch (Base)","description":"One account for your money. And a Copilot that only acts when you approve. Earn on savings, send money in seconds, and buy stocks from $1, all from one balance, with none of the crypto.","url":"https://api.liquidagent.ai/v1/gas/preflight/batch?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,"results":[{"index":0,"success":true,"gasEstimate":"31294"}],"success":true}},"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_-CBBxal7wdYsFwnDYEUTf","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 one or more unsigned EVM transactions in batch on Base, returning gas estimates and success/failure for each, before any on-chain execution.","exampleAgentPrompt":"Before I send these three contract calls on Base, can you simulate them all at once and tell me how much gas each one will need and whether they'll succeed? The first call goes to 0xAbC...123 with calldata 0xd0e30c0b and 0 ETH, the second to 0xDeF...456 with no calldata and 1000000000000000 wei, and the third to 0x789...xyz with calldata 0xa9059cbb...","exampleUseCases":[{"title":"Batch preflight before DeFi swap sequence","prompt":"I'm about to execute three DeFi steps in a row on Base — an approve, a swap, and a liquidity deposit. Can you simulate all three contract calls at once and tell me the gas estimate and whether each one will go through? Here are the target addresses and calldata for each."},{"title":"Gas budget estimation for airdrop contracts","prompt":"I need to send tokens to 50 wallets via a batch contract call on Base. Before I commit, can you simulate the transaction with this calldata against the airdrop contract at 0x1234...abcd and tell me the total gas I should budget?"},{"title":"Pre-execution safety check for agent-submitted transactions","prompt":"My agent is about to submit a bundle of contract interactions on Base. Run a preflight simulation on these calls — to 0xAAA...111 with calldata 0xbeef... and 0xBBB...222 with calldata 0xcafe... — and confirm they'll succeed and give me the gas estimates before we go live."}],"resultDescription":"A JSON object containing the Base chainId (8453), an overall success flag, and a results array where each entry includes the call's index, a success boolean, and a gasEstimate string (in units of gas) for that simulated transaction.","failureModes":["Invalid contract address returns simulation failure for that index","Malformed calldata causes per-call failure with success:false","Value exceeding simulated sender balance causes revert","Calldata exceeding 16 KiB limit is rejected","Network or RPC timeout causes the entire batch to fail","Revert in one call does not necessarily fail the whole batch — per-index results are independent"],"whenToPreferThis":"Use this endpoint when you need to simulate multiple EVM transactions on Base in a single round-trip before committing gas or signing anything. It is preferable to single-call preflight endpoints when you have two or more interdependent or parallel contract interactions to validate at once, and it is the right choice when you want to budget gas accurately across a batch without any on-chain side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-01T00:41:51.822Z","isFirstParty":false,"canonicalSlug":"liquid-agent-gas-preflight-batch-base-be374a9b"}