{"uid":"cap_IMQIcVL7Ai2zMGtUbQSx3","slug":"basefeed-erc-20-transaction-preflight-check-5adf10ed","name":"basefeed ERC-20 Transaction Preflight Check","description":"Pack: pre-trade gas, token, balances","url":"https://api.basefeed.io/v1/pack/exec-preflight","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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["token"],"properties":{"chain":{"enum":["base","base-sepolia"],"type":"string","default":"base"},"token":{"type":"string"},"wallet":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"pack":"exec-preflight"}},"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_rRNE7Q2nTxvgQgCKSdTB8","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":"Validates preflight conditions for ERC-20 token transactions on Base, checking token metadata and wallet readiness before execution","exampleAgentPrompt":"Before I execute a transfer of USDC on Base mainnet from wallet 0xAbC...123, can you run a preflight check to make sure everything looks good?","exampleUseCases":[{"title":"Pre-swap token validation on Base","prompt":"Before I swap this ERC-20 token at address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base mainnet, run a preflight check against my wallet 0xDeF...456 to confirm the transaction is good to go."},{"title":"Testnet deployment readiness check","prompt":"I'm about to deploy a transaction on Base Sepolia testnet using token 0xABC123 — can you do a preflight exec check to make sure everything's ready before I submit?"},{"title":"DeFi agent pre-execution guard","prompt":"My agent is about to execute a DeFi action on Base chain with the DAI token at 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb — run the exec preflight check first so I know it won't fail."}],"resultDescription":"Returns a JSON object with an 'ok' boolean indicating whether the preflight conditions are satisfied and the pack name ('exec-preflight'), signaling whether a transaction or token operation can proceed on the specified Base chain.","failureModes":["Missing required 'token' query parameter returns validation error","Invalid or unrecognized ERC-20 token address may return ok: false or an error","Unsupported chain value (not 'base' or 'base-sepolia') returns schema validation error","Payment not included or insufficient USDC results in 402 Payment Required before response","Network issues reaching Base RPC may cause timeouts or 5xx errors"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call preflight check before submitting an ERC-20 token transaction on Base chain, especially in automated DeFi agent workflows where you want to guard against failed transactions. Prefer this over querying token metadata or gas endpoints separately when you need a bundled readiness check. Ideal for agents that need to validate wallet + token state before execution without managing API keys or subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:30:12.433Z","isFirstParty":false}