{"uid":"cap_1Qv5nWB8Sc1AZl8ge1OLr","slug":"phantom-api-on-chain-transaction-history-5eecaa33","name":"Phantom API — On-Chain Transaction History","description":"Lightning-fast access to blockchain data, smart contract insights, and Web3 infrastructure across 57+ networks. Pay-per-call via x402.","url":"https://phantom-api-omega.vercel.app/api/tempo/tx/history","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"order":{"enum":["asc","desc"],"type":"string"},"pageKey":{"type":"string"},"toBlock":{"type":"string"},"category":{"type":"array","items":{"type":"string"}},"maxCount":{"type":"number"},"fromBlock":{"type":"string"},"toAddress":{"type":"string"},"fromAddress":{"type":"string"},"withMetadata":{"type":"boolean"},"excludeZeroValue":{"type":"boolean"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_szQfFaxlUfzYC9krRJ13y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves paginated blockchain transaction history for a given address or address pair across 57+ networks, with optional metadata and category filters.","exampleAgentPrompt":"Pull the last 50 transactions sent from wallet 0xABC123 up to block 19000000, include metadata, and sort them in descending order so I can see the most recent ones first.","exampleUseCases":[{"title":"Wallet activity audit for compliance","prompt":"Get me all transactions involving wallet 0xDEADBEEF from block 18000000 to block 19000000, excluding zero-value transfers, with full metadata — I need to audit this address's on-chain activity."},{"title":"Paginated ERC20 transfer history","prompt":"Fetch up to 100 ERC20 token transfers sent from 0xSENDER to 0xRECEIVER in ascending block order — include a page key so I can keep paginating through the full history."},{"title":"Smart contract incoming transaction feed","prompt":"Show me all incoming transactions to my smart contract at 0xCONTRACT123 across all categories, sorted descending, with metadata — I want to monitor who's been calling it recently."}],"resultDescription":"Returns a paginated list of on-chain transactions matching the specified address(es), block range, and category filters. Each record typically includes transaction hash, block number, from/to addresses, value, asset type, and optional metadata. A pageKey is included when more results are available.","failureModes":["Invalid address format returns a 400 error","Unsupported category values cause a validation error","Block range too large may result in timeout or truncated results","Missing fromAddress or toAddress with no filter may return empty results","pageKey from a different query context causes pagination errors","Network unavailable or node timeout returns 5xx"],"whenToPreferThis":"Use this endpoint when you need historical on-chain transaction data for a specific wallet or contract address, especially when you require pagination, block-range filtering, or category-based filtering (e.g. ERC20, internal, external). Prefer this over real-time event streaming endpoints when doing historical analysis or auditing. Suitable for pay-per-call usage where you only need occasional lookups rather than a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:44:28.161Z","isFirstParty":false}