How to get transaction history on Solana

Fetch recent transactions, filter by type (swaps, transfers, NFT sales), or paginate through a wallet's full history.

Which API should I use?

Use the Enhanced API for user-facing transaction feeds with human-readable descriptions. Use the RPC method for indexing or analytics with efficient keyset pagination.

Show recent activity

Enhanced API returns parsed transactions with type labels like "Swapped 10 SOL for USDC" ready to display.

Filter by type

Query only SWAP, TRANSFER, NFT_SALE, NFT_MINT, STAKE_SOL, or other specific transaction types.

Paginate full history

Use keyset pagination for wallets with thousands of transactions. Efficient for indexing and analytics.

API Notes

  • Enhanced API: Best for user-facing transaction feeds. Returns parsed data with type classification and human-readable descriptions.
  • RPC Method: Best for indexing or analytics. Supports efficient keyset pagination for wallets with 1000s of transactions.
  • Transaction types: Enhanced API classifies transactions into types like TRANSFER, SWAP, NFT_SALE, NFT_MINT, STAKE_SOL and more.
  • Rate limits: Both endpoints share the same rate limits. Use appropriate caching and pagination to avoid hitting limits.