{"uid":"cap_FZhUC1heBLJzHKdkMEOKq","slug":"amnt-transaction-preflight-a9b7f6b4","name":"AMNT Transaction Preflight","description":"Tx Preflight - Simulate a transaction before you sign it and get a safe / warn / danger verdict.","url":"https://www.amnt.io/api/os-tools/tx-preflight","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","examples":["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"],"maxLength":42,"description":"The contract or wallet this transaction is aimed at."},"data":{"type":"string","examples":["0x095ea7b3..."],"maxLength":20000,"description":"The transaction's data field, hex. Omit for a plain native-token send."},"from":{"type":"string","examples":["0xYourWallet..."],"maxLength":42,"description":"The wallet that would sign. Used for the simulation and the allowance read."},"value":{"type":"string","default":"0","examples":["0"],"maxLength":32,"description":"Native token sent with the call, in wei. Decimal string."},"chainId":{"enum":["8453","1","10","42161","137"],"type":"string","default":"8453","description":"Which chain to simulate against."}}},"responseSchema":null,"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_wheM8HrpmBzFpqZ9X9T0T","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 EVM transaction before signing and returns a safety verdict (safe/warn/danger) to help users avoid risky or malicious transactions.","exampleAgentPrompt":"Before I sign this transaction, simulate it and tell me if it's safe — it's going to 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base (chain 8453), from my wallet 0xYourWallet, with calldata 0x095ea7b3... and 0 wei value.","exampleUseCases":[{"title":"Verify token approval before signing","prompt":"I'm about to approve a token spend on Base — can you preflight this transaction for me before I sign? The 'to' is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, my wallet is 0xAbC123..., calldata is 0x095ea7b3000000000000000000000000someSpender, 0 wei, chain 8453."},{"title":"Check suspicious DeFi interaction","prompt":"I got a weird transaction request from a DeFi site — can you simulate it and tell me if it's safe or dangerous? It's on Ethereum mainnet (chain 1), to 0xDeadBeef..., from 0xMyWallet..., with this calldata: 0xdeadbeef1234..., no ETH value."},{"title":"Pre-approve airdrop claim safety check","prompt":"Before I claim this airdrop, run a preflight simulation on the transaction to make sure it won't drain my wallet — it's on Arbitrum (chain 42161), targeting 0xAirdropContract..., from 0xMyAddress..., calldata 0x4e71d92d, value 0."}],"resultDescription":"Returns a safety verdict of safe, warn, or danger for the simulated transaction, along with contextual details about what the transaction would do — such as allowance changes, token transfers, or suspicious patterns detected during simulation.","failureModes":["Invalid or malformed hex calldata returns an error","Unsupported chain ID (only 1, 10, 137, 8453, 42161 are supported)","Simulation may fail if the 'from' address has insufficient balance for the simulation","Contract not deployed at 'to' address causes simulation failure","Malformed Ethereum address format returns validation error"],"whenToPreferThis":"Use this endpoint when an AI agent or user needs to assess the risk of an EVM transaction before signing — especially for approvals, DeFi interactions, or any calldata received from an untrusted source. Ideal for wallet UX flows, agent-driven DeFi automation, or phishing protection pipelines. Prefer this over static calldata decoders when you need a simulation-backed verdict rather than just ABI decoding.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:59:10.536Z","isFirstParty":false}