{"uid":"cap_dee-Y7JVDa4kIQ-yX-Flo","slug":"phantom-api-zksync-transaction-history-afe854e9","name":"Phantom API — ZKsync 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/zksync/tx/history?utm_source=zero.xyz","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_aEh8S6ALjR2hdQn-Ublgt","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 ZKsync network, with filtering by block range, category, and address.","exampleAgentPrompt":"Pull the last 25 transactions sent from ZKsync address 0xAbC123... to 0xDef456..., ordered newest-first, include metadata, and skip any zero-value transfers.","exampleUseCases":[{"title":"Audit wallet outgoing transfers","prompt":"Show me all transactions sent from my ZKsync wallet 0xAbC123... over the last 1000 blocks, ordered from oldest to newest, with full metadata included."},{"title":"Monitor incoming payments to a contract","prompt":"Fetch the most recent 50 incoming transactions to ZKsync contract address 0xDef456..., excluding zero-value transfers, so I can see who has been sending funds."},{"title":"Paginate through historical ZKsync activity","prompt":"I need to page through all ZKsync transactions between blocks 5000000 and 5100000 for address 0x789Xyz..., filtered to ERC20 token transfers only — give me the first batch and include a page key so I can get the next set."}],"resultDescription":"A paginated list of ZKsync transactions matching the specified filters, including sender/receiver addresses, block numbers, transaction hashes, transfer categories, optional metadata, and a pageKey for fetching subsequent pages.","failureModes":["Invalid address format returns an error response","Block range too large may time out or be rejected","Unknown category values may return empty results or an error","Missing required address fields may result in overly broad or failed queries","Payment failure via x402 returns a 402 status before data is delivered"],"whenToPreferThis":"Choose this endpoint when you need ZKsync-specific transaction history with fine-grained filtering by address pair, block range, category, and value. Prefer it over generic Ethereum history endpoints when the target network is ZKsync, and when you need paginated, pay-per-call access without a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:52:12.211Z","isFirstParty":false,"canonicalSlug":"phantom-api-zksync-transaction-history-afe854e9"}