Skip to main content
What you’ll build:
  • 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
Time: ~10 minutes

Prerequisites

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 value
  • application_metadata - the DApp involved (e.g., “Uniswap”, “Aave”)
2

Filter by operation type

To show only specific transaction types, use filter[operation_types].
Available 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]=nft to show NFT transfers
  • Combine with the DApps endpoint to enrich application_metadata
  • Build real-time alerts using the webhook recipe instead of polling