{"uid":"cap_JwlbXMP0IlRB0eC4IzYu0","slug":"agentfeed-transaction-precheck-085153ea","name":"AgentFeed Transaction Precheck","description":"Transaction precheck: simulated balance changes, programs or contracts, approvals, new accounts, token-risk reads and warnings. Use when you need to answer: What would this Solana or Base transaction do to the wallet that signs it, before it is signed? 503 if it cannot simulate: not charged.","url":"https://x402.ochinimus.app/api/tx-precheck?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":["chain"],"properties":{"to":{"type":"string","maxLength":42,"description":"chain=base: the 0x address the transaction calls"},"tx":{"type":"string","maxLength":1644,"description":"chain=solana: the transaction as base64, legacy or version 0, signed or unsigned, at most 1232 bytes"},"data":{"type":"string","maxLength":20002,"description":"chain=base: calldata as 0x hex, at most 20000 hex characters (default 0x)"},"from":{"type":"string","maxLength":42,"description":"chain=base: the sender, a 0x address (default: a placeholder sender that holds nothing)"},"chain":{"enum":["solana","base"],"type":"string","description":"the chain of the transaction: solana or base"},"value":{"type":"string","maxLength":80,"description":"chain=base: wei to send, decimal or 0x hex (default 0)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"as_of":{"type":"object"},"chain":{"type":"string"},"tokens":{"type":"array"},"request":{"type":"object"},"summary":{"type":"object"},"programs":{"type":"array"},"warnings":{"type":"array"},"approvals":{"type":"array"},"simulation":{"type":"object"},"delegations":{"type":"array"},"new_accounts":{"type":"array"},"balance_changes":{"type":"array"},"closed_accounts":{"type":"array"}}},"paid":{"type":"boolean"},"tool":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xLzkjJWJX46twe84eVJOS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Simulates a Solana or Base transaction before signing, returning balance changes, program/contract interactions, approvals, new accounts, token risk, and warnings.","exampleAgentPrompt":"Before I sign this Solana transaction, simulate it and tell me what balance changes, program interactions, and any token warnings it would cause — here's the base64 tx: AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAQABAgAA","exampleUseCases":[{"title":"Solana wallet drain check","prompt":"I'm about to sign this Solana transaction but I want to make sure it won't drain my wallet — can you simulate it first and show me what SOL and token balance changes it would cause? The base64 tx is: AQID..."},{"title":"Base contract call safety review","prompt":"Before I approve this Base transaction, simulate it for me: sender is 0xAbc123..., calling contract 0xDef456..., with calldata 0xa9059cbb... and 0 wei — tell me what approvals or token risks it flags."},{"title":"NFT mint transaction preview","prompt":"I want to preview this Base transaction that mints an NFT — sender 0x111..., contract 0x222..., calldata 0x1249c58b — what balance changes and new accounts would it create before I sign?"}],"resultDescription":"Returns a structured object including: the chain, a simulation summary, token-by-token balance changes, a list of programs or contracts interacted with, any new or closed accounts, approvals granted, delegations, token risk warnings, and a timestamp. Returns 503 (not charged) if simulation fails.","failureModes":["503 if the transaction cannot be simulated (not charged)","Invalid base64 Solana transaction encoding","Malformed 0x calldata for Base transactions","Missing required 'chain' query parameter","Transaction too large (exceeds 1232 bytes for Solana or 20000 hex chars for Base)","Unrecognized chain value (must be 'solana' or 'base')"],"whenToPreferThis":"Use this endpoint when you need to dry-run a Solana or Base transaction before the user signs it — especially to detect drains, malicious approvals, unexpected program interactions, or token risks. Prefer this over on-chain simulation tools when you need a structured, agent-readable response with explicit risk warnings and balance change breakdowns, and when you want the simulation to be free on failure (503 = no charge).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-15T00:30:29.869Z","isFirstParty":false,"canonicalSlug":"agentfeed-transaction-precheck-085153ea"}