{"uid":"cap_8-z8pENYJlH9y5fmuE6w-","slug":"saylor-innovations-gas-estimate-bsc-4b6fc525","name":"Saylor Innovations Gas Estimate (BSC)","description":"Gas Estimate (bsc) — On-Chain Data","url":"https://saylorinnovations.com/api/evm/bsc/estimate-gas?utm_source=zero.xyz","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","POST","PUT","PATCH","DELETE","HEAD"],"type":"string"},"queryParams":{"type":"object","properties":{"to":{"type":"string","description":"0x target (query)"},"data":{"type":"string","description":"optional 0x calldata (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["chain","reverted"],"properties":{"gas":{"type":["number","null"]},"chain":{"type":"string"},"error":{"type":["string","null"]},"native":{"type":"string"},"reverted":{"type":"boolean"},"est_fee_native":{"type":["string","null"]},"gas_price_gwei":{"type":["number","null"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UlHdg-ZOugX84X4rOJm5q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the gas cost for a transaction on BNB Smart Chain (BSC), returning gas units, gas price in gwei, and estimated fee in native BNB.","exampleAgentPrompt":"Before I send a transaction to the contract at 0xBf5140A22578168FD562DCcF235E5D43A02ce9B1 on BSC with calldata 0xa9059cbb000000000000000000000000abc...0000000000000000000000000000000000000000000000000de0b6b3a7640000, can you estimate how much gas it will use and what the fee will be in BNB?","exampleUseCases":[{"title":"Pre-flight DeFi swap cost check","prompt":"I'm about to call a PancakeSwap router on BSC at 0x10ED43C718714eb63d5aA57B78B54704E256024E with swap calldata — can you estimate the gas and tell me how much BNB it'll cost before I send it?"},{"title":"Detect reverting contract call","prompt":"Can you simulate a transaction to the BSC contract at 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82 with my calldata and let me know if it would revert and how much gas it would consume?"},{"title":"Gas budget planning for automation bot","prompt":"I'm building a bot that calls a BSC contract at 0x55d398326f99059fF775485246999027B3197955 every hour — can you estimate the gas cost per call so I can budget how much BNB I need to keep in the wallet?"}],"resultDescription":"Returns a JSON object with the chain name ('bsc'), estimated gas units, gas price in gwei, estimated fee in native BNB as a string, a boolean indicating if the transaction would revert, and an error message if applicable. Null values are returned for gas fields if the estimation fails.","failureModes":["Invalid or missing 'to' address returns an error in the error field with null gas values","Malformed calldata causes revert simulation with reverted=true","Target contract does not exist on BSC returns null gas estimate","Network congestion or RPC node unavailability may cause timeout or error response","If the transaction would revert on-chain, reverted=true is returned with an error description"],"whenToPreferThis":"Use this endpoint when you need to estimate transaction costs specifically on BNB Smart Chain (BSC) before submitting a transaction. It is the right choice when you need gas units, current gas price in gwei, and fee in native BNB in a single call, and when you want to pre-check whether a transaction would revert. Prefer this over Ethereum or Arbitrum gas estimate endpoints when the target contract is deployed on BSC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:48:45.033Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-gas-estimate-bsc-4b6fc525"}