{"uid":"cap_Flw3pVyDWsm0UHJmQki86","slug":"pre-sign-transaction-simulation-38540e6d","name":"Pre-Sign Transaction Simulation","description":"Transaction simulation before signing (pre-sign safety check and drainer detection): simulate an EVM transaction or an approve-then-swap sequence of up to 5 — revert check with reason, every asset leaving or entering the wallet, approvals granted, sanctions/scam screening of every counterparty, and a proceed/caution/avoid verdict. Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Linea, Unichain, Sonic. Category: security.","url":"https://agentforge-taupe.vercel.app/v1/tx-simulate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"from":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Wallet that will sign"},"chain":{"enum":["ethereum","base","arbitrum","optimism","polygon","bsc","linea","unichain","sonic"],"type":"string","default":"base"},"transactions":{"type":"array","items":{"type":"object","required":["to"],"properties":{"to":{"type":"string"},"gas":{"type":"string"},"data":{"type":"string","default":"0x"},"value":{"type":"string","default":"0x0","description":"Wei, hex or decimal"}}},"maxItems":5,"minItems":1}}},"responseSchema":{"type":"json","example":{"reasons":["Transaction 1 reverts: Blacklistable: account is blacklisted","recipient 0x0330… is on a sanctions or scam list"],"verdict":"avoid","approvals":[],"assetChanges":[],"counterparties":[{"role":"recipient","address":"0x0330…","verdict":"block"}]}},"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_mBPnAjO9yciCFD0xH2mdL","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 EVM transactions before signing to detect reverts, asset changes, approvals, sanctions, and scam risks with a proceed/caution/avoid verdict","exampleAgentPrompt":"Before I sign this transaction, simulate it on Base for my wallet 0xAbCd…1234 — check whether it reverts, what assets will leave or enter my wallet, any approvals it grants, and whether any counterparty is sanctioned or a known scammer, then give me a verdict on whether I should proceed.","exampleUseCases":[{"title":"DeFi swap drainer detection","prompt":"I'm about to approve and swap USDC for ETH on Uniswap on Arbitrum from my wallet 0xAbCd…1234 — can you simulate both the approval and the swap transactions to make sure no assets are unexpectedly drained and no counterparties are sanctioned before I sign?"},{"title":"Smart contract interaction safety check","prompt":"I want to call this contract on Ethereum from 0xDead…Beef — here's the calldata. Simulate it first and tell me if it reverts, what tokens leave my wallet, what approvals it grants, and whether I should avoid it."},{"title":"Multi-step airdrop claim pre-check","prompt":"Before I claim this airdrop on Polygon with my wallet 0x1234…5678, simulate the transaction and tell me if anything looks like a scam — check if any counterparties are on sanctions lists and whether the verdict is safe to proceed."}],"resultDescription":"Returns a JSON object with a top-level verdict (proceed, caution, or avoid), a list of reasons explaining the verdict, an array of asset changes (tokens entering or leaving the wallet), approvals granted by the transaction, and a list of counterparties with their addresses, roles, and individual verdicts including sanctions or scam flags. Revert reasons are included when applicable.","failureModes":["Invalid wallet address format returns a 400 validation error","Unsupported chain name returns an enum validation error","Transaction array with more than 5 items is rejected","Malformed calldata or hex values may cause simulation failure","Network congestion on the target chain may cause timeout","Unverified or self-destructed contracts may produce incomplete simulation results","Missing required 'to' field in a transaction object returns a 400 error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to verify the safety of one or more EVM transactions before the user signs — especially for DeFi interactions, token approvals, swaps, or airdrop claims. It is preferred over a simple revert checker because it also screens counterparties for OFAC sanctions and known scam addresses, enumerates all asset flows, and returns a human-readable verdict. Choose it over a generic balance check or approval scanner when you need a holistic pre-sign safety verdict covering up to 5 chained transactions across Ethereum, Base, Arbitrum, Optimism, Polygon, BNB Chain, Linea, Unichain, or Sonic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:33:35.162Z","isFirstParty":false,"canonicalSlug":"pre-sign-transaction-simulation-38540e6d"}