- Fetch and display a wallet’s transaction history with human-readable labels
- Filter transactions by type, chain, and date range
- Paginate through the full history
Prerequisites
- A Zerion API key (get one here)
- A wallet address to query
Steps
1
Fetch recent transactions
Use the wallet transactions endpoint to get a wallet’s history.Each transaction includes:
operation_type- the high-level action (trade, send, receive, deposit, etc.)transfers[]- individual token movements with direction (in/out/self)fee- gas fee paid, with USD valueapplication_metadata- the DApp involved (e.g., “Uniswap”, “Aave”)
2
Filter by operation type
To show only specific transaction types, use Available operation types:
filter[operation_types].3
Filter by chain and date range
Narrow results to specific chains or time windows. The
filter[min_mined_at] value is a Unix timestamp in milliseconds.4
Paginate through full history
Use
links.next from each response to fetch the next page.5
Full working example
Save as
tx-history.mjs and run with node tx-history.mjs:Next steps
- Use
filter[asset_types]=nftto show NFT transfers - Combine with the DApps endpoint to enrich
application_metadata - Build real-time alerts using the webhook recipe instead of polling