{"uid":"cap_wmWg6ynzYIdDqu36xB4sZ","slug":"phantom-api-x-layer-transaction-history-4ccc7422","name":"Phantom API — X Layer 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/xlayer/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_KSuhxeaJ3kprXJRcZq1M_","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 transaction history for addresses on the X Layer (XLayer) blockchain network","exampleAgentPrompt":"Pull the last 25 transactions for wallet address 0xAbC123... on X Layer, sorted newest first, including metadata and excluding zero-value transfers.","exampleUseCases":[{"title":"Wallet audit on X Layer","prompt":"Show me all transactions sent from 0xDeF456... on X Layer between block 1000000 and 1050000, sorted oldest to newest, with full metadata included."},{"title":"Monitor incoming transfers to contract","prompt":"Fetch the most recent 50 incoming transactions to smart contract 0x789XyZ... on X Layer, filtering out zero-value transfers, and give me the page key so I can continue paginating."},{"title":"Portfolio activity reconciliation","prompt":"I need to reconcile my wallet activity — get all ERC-20 and external transactions for address 0xAAA111... on X Layer in descending order, up to 100 results, with metadata."}],"resultDescription":"Returns a paginated list of transactions on the X Layer network matching the specified address filters, block range, and category criteria. Each transaction entry typically includes the transaction hash, block number, from/to addresses, asset type, value, and optional metadata. A pageKey is returned when more results are available for subsequent pagination calls.","failureModes":["Invalid address format returns a 400 bad request error","Specifying an out-of-range block returns empty results or an error","Invalid category values result in a validation error","Exceeding maxCount limits may return a truncated result or error","Expired or invalid pageKey causes pagination to restart or fail","Network unavailability returns a 5xx server error","Insufficient payment (x402) results in a 402 Payment Required response"],"whenToPreferThis":"Use this endpoint when you need paginated, filterable transaction history specifically on the X Layer (XLayer) network. It supports fine-grained filtering by sender/receiver address, block range, transaction category, and zero-value exclusion, making it ideal for wallet audits, portfolio reconciliation, or DeFi analytics on XLayer. Prefer this over generic block explorers when you need structured, machine-readable JSON output compatible with agent pipelines and pay-per-call economics via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:49:53.677Z","isFirstParty":false}