{"uid":"cap_k84Nbnk_2po3jaNiPMDDV","slug":"phantom-api-optimism-transaction-history-409ee2f4","name":"Phantom API — Optimism 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/optimism/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_34dcDvjG5O0FuWVFZGCHZ","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 historical transactions on the Optimism (OP Mainnet) blockchain for a given address or block range, with filtering and pagination support.","exampleAgentPrompt":"Pull the last 25 transactions involving my Optimism wallet 0xAbC...123 in descending order, including metadata, and skip any zero-value transfers.","exampleUseCases":[{"title":"Wallet activity audit for compliance","prompt":"Get me the full transaction history for Optimism address 0xDe...789 between block 100000 and block 200000, including metadata, so I can audit its on-chain activity."},{"title":"DeFi portfolio tracker update","prompt":"Fetch the 50 most recent ERC-20 transfers sent to my Optimism wallet 0xAb...456, ordered newest first, so I can update my portfolio tracker."},{"title":"Smart contract interaction history","prompt":"Show me all transactions sent from address 0x11...AAA to smart contract 0x22...BBB on Optimism, starting from the earliest block, excluding zero-value transfers."}],"resultDescription":"Returns a paginated list of transactions on the Optimism network matching the specified filters, including transaction hashes, block numbers, asset categories, sender/receiver addresses, values, and optional metadata. A pageKey is provided when more results are available.","failureModes":["Invalid or malformed address returns an error or empty result","Unsupported category value causes a validation error","Block range too large may result in timeout or truncated results","pageKey expiration leads to pagination errors","Missing required address fields returns empty or error response","Payment not processed (x402) results in 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need historical transaction data specifically on the Optimism (OP Mainnet) L2 network, with flexible filtering by address, block range, category, and value. Prefer it over general Ethereum endpoints when querying Optimism-specific activity, and over block explorers when you need programmatic, paginated, pay-per-call access without rate-limit tiers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:31:06.272Z","isFirstParty":false}