{"uid":"cap_2phLq-df_rXVlZyIp_Qts","slug":"spraay-batch-gas-estimator-b21dcc67","name":"Spraay Batch Gas Estimator","description":"Estimate batch gas.","url":"https://gateway.spraay.app/api/v1/batch/estimate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"token":{"type":"string"},"sender":{"type":"string"},"amounts":{"type":"array"},"recipients":{"type":"array"},"recipientCount":{"type":"number"}}},"responseSchema":null,"example":{"request":{"recipientCount":250},"response":{"note":"Gas estimate is approximate. Provide recipients array for exact fee calculation.","token":{"isETH":false,"symbol":"USDC"},"success":true,"feePercent":"0.3%","estimatedGas":"16300000","recipientCount":250}},"exampleRequest":{"recipientCount":250},"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zgFNATkLtv8zz9pUMqok4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the total gas cost for a batch transaction given a number of recipients on Solana or EVM-compatible chains.","exampleAgentPrompt":"Before I do a batch token send on Spraay, estimate the gas cost for sending to 250 recipients.","exampleUseCases":[{"title":"Calculate airdrop cost for NFT launch","prompt":"I'm planning an NFT airdrop to 1500 community members. Can you estimate how much gas I'll need to budget for sending tokens to all of them at once?"},{"title":"Verify batch payment feasibility","prompt":"We want to distribute quarterly bonuses to our 400 employees via batch transfer. What would the total gas fees be so I can account for it in our budget?"},{"title":"Compare costs across chain options","prompt":"I need to send tokens to 750 wallets and I'm deciding between Ethereum and Polygon. Can you estimate the gas costs on both so I can pick the cheaper option?"}],"resultDescription":"Returns an estimated gas cost or fee for executing a batch transaction with the specified number of recipients, allowing the caller to anticipate costs before committing to on-chain execution.","failureModes":["Missing or invalid recipientCount returns a 400 validation error","recipientCount of zero or negative number may return an error or zero estimate","Service unavailable returns 5xx","Exceeded rate limit or payment failure returns 402 or 429"],"whenToPreferThis":"Use this endpoint when you need a pre-flight gas estimate before submitting a batch transaction through Spraay — especially useful for budgeting multi-recipient token sends or airdrops without executing on-chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:49:25.254Z","isFirstParty":false}