{"uid":"cap_P-Bv3P5sGyhhLm0PwyqRv","slug":"can-i-send-this-transaction-evm-pre-flight-check-ea552d68","name":"Can I Send This Transaction (EVM Pre-flight Check)","description":"Use when an agent is about to sign a transaction and must decide whether it will go through right now: one call that answers canSend with the facts behind it - the sender's balance, the gas this exact transaction needs, what it will cost, whether the node says it would revert, the nonce to use if earlier ones are still in flight, whether the destination is a contract, and how stale the chain head is. Replaces five separate reads. No API key, no account.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/evm/can-i-send?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"],"type":"string"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"Destination address."},"data":{"type":"string","description":"Optional 0x calldata."},"from":{"type":"string","description":"The address that would sign and pay."},"chain":{"type":"string","description":"base | ethereum | polygon | arbitrum | optimism. Defaults to base."},"value":{"type":"string","description":"Optional native amount in wei, as a decimal string."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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__ojmE_Q-GGCvVGmeKhgrl","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":"Checks whether an EVM transaction will succeed right now by returning balance, gas estimate, cost, revert status, nonce, contract detection, and chain head freshness in a single call.","exampleAgentPrompt":"Before I sign this transaction sending 0.5 ETH from 0xAbC...123 to 0xDeF...456 on Base, check if it will actually go through — tell me if I have enough balance, what the gas will cost, whether it would revert, and what nonce to use.","exampleUseCases":[{"title":"DeFi swap pre-flight on Arbitrum","prompt":"Before I send this swap calldata 0xa9059cbb... from 0x1234...abcd to the Uniswap router at 0xE592...3Ad1 on Arbitrum with 0 ETH value, tell me if the transaction will go through, whether it would revert, and how much gas it'll cost."},{"title":"ETH transfer feasibility check","prompt":"Can my wallet 0xAaaa...1111 actually send 1.2 ETH to 0xBbbb...2222 on Ethereum right now — do I have enough balance to cover the value plus gas, and what nonce should I use?"},{"title":"Contract interaction safety check","prompt":"I'm about to call a smart contract at 0xCccc...3333 from 0xDddd...4444 on Polygon with this calldata 0x095ea7b3... — is the destination actually a contract, would the call revert, and will the total cost fit in my balance?"}],"resultDescription":"A JSON object with a canSend boolean and supporting facts: the sender's current balance, the estimated gas units, the total cost in wei (gas cost + value), whether a static call simulation would revert (and the revert reason if so), the recommended nonce accounting for pending transactions, whether the destination address is a contract, and the age of the chain head in seconds to indicate data freshness.","failureModes":["Missing required 'from' or 'to' address parameters returns a 400 error","Invalid or malformed Ethereum address causes a parse or validation error","Unsupported chain name falls back to base or returns an error","Node connectivity issues may cause timeout or stale chain head warnings","Very high gas transactions may hit estimation limits","Payment not received (402 if x402 payment not attached)"],"whenToPreferThis":"Use this endpoint when an agent is about to sign or broadcast an EVM transaction and needs a single authoritative go/no-go answer before committing. It replaces five separate RPC reads (eth_getBalance, eth_estimateGas, eth_call for revert, eth_getTransactionCount, eth_getCode) with one call, making it ideal for autonomous agents that need fast, consolidated pre-flight checks without managing RPC connections or API keys. Prefer it over raw RPC calls when you need all preflight data atomically and want to avoid partial state reads across multiple requests.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:30:10.097Z","isFirstParty":false,"canonicalSlug":"can-i-send-this-transaction-evm-pre-flight-check-ea552d68"}