{"uid":"cap__mCMBNkyx0aqLocVdvHfy","slug":"machine-preflight-api-b4b69089","name":"Machine Preflight API","description":"Read-only preflight analysis for unsigned Base transactions. Technical signal only; no signing, broadcasting or investment advice.","url":"https://preflight.natio.re/v1/preflight/transaction?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Target address of the unsigned transaction."},"data":{"type":"string","default":"0x","pattern":"^0x(?:[0-9a-fA-F]{2})*$","maxLength":131074,"description":"Hex-encoded calldata, including the four-byte selector."},"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"Required signing address used as the EVM caller for eth_call and gas estimation."},"chainId":{"enum":[8453],"type":"integer","default":8453,"description":"Base mainnet chain ID. Only Base is accepted in v1."},"valueWei":{"type":"string","default":"0","pattern":"^(?:0|[1-9][0-9]*|0x[0-9a-fA-F]+)$","description":"Native value in wei, encoded as an unsigned decimal or hex string."}}},"responseSchema":{"type":"json","example":{"risk":{"level":"critical","score":60,"findings":[{"code":"UNLIMITED_TOKEN_APPROVAL","title":"Effectively unlimited token approval","severity":"critical"}]},"chain":{"id":8453,"name":"Base"},"reportVersion":"1.0"}},"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_olniLWkP9tb79m8RDVoAM","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":"Simulates and inspects an unsigned Base (chain ID 8453) transaction for token approvals, privileged selectors, reverts, and smart contract anomalies before signing.","exampleAgentPrompt":"Before I sign this transaction, can you run a preflight safety check on it? The target is 0xAbCd...1234, my wallet address is 0xDeFg...5678, the calldata is 0xa9059cbb000000..., and the value is 0 wei on Base mainnet — I want to know if there are any unlimited approvals, dangerous selectors, or reverts.","exampleUseCases":[{"title":"DeFi approval safety check","prompt":"I'm about to approve a token spend on a DeFi protocol on Base — can you simulate the transaction first and tell me if the approval is unlimited or if anything looks suspicious? My wallet is 0xAaaa...1111, the contract is 0xBbbb...2222, and the calldata is 0x095ea7b3..."},{"title":"Pre-sign revert detection","prompt":"Check whether this Base transaction will revert before I send it — caller is 0xCccc...3333, target is 0xDddd...4444, calldata is 0x23b872dd..., and I'm sending 0 wei. I don't want to waste gas on a failed tx."},{"title":"Smart contract anomaly audit","prompt":"Can you inspect this unsigned Base mainnet transaction for any privileged selectors or contract code anomalies? The from address is 0xEeee...5555, to is 0xFfff...6666, and the hex calldata is 0x70a08231...."}],"resultDescription":"Returns a JSON report containing a risk level (e.g. 'critical'), a numeric risk score, and an array of findings — each with a code, title, and severity — plus chain metadata (id: 8453, name: 'Base') and a report version string.","failureModes":["Invalid Ethereum address format for 'to' or 'from' returns a validation error","Non-Base chain ID (anything other than 8453) is rejected in v1","Malformed or odd-length hex calldata returns a pattern validation error","Simulated call reverts on-chain resulting in a revert finding in the report","Oversized calldata exceeding 131074 hex characters rejected","Network or RPC errors may cause simulation failure with a 5xx response"],"whenToPreferThis":"Use this endpoint when you need to pre-screen an unsigned Base transaction for security risks before presenting it to a user for signing — especially for DeFi interactions involving token approvals, contract calls with complex calldata, or interactions with unknown or unaudited contracts. It is uniquely suited for wallets, agent-driven transaction flows, and security tooling that must catch unlimited approvals, dangerous privileged selectors, or likely reverts before gas is spent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T06:37:52.398Z","isFirstParty":false,"canonicalSlug":"machine-preflight-api-b4b69089"}