getTransactionHistory function.
This function fetches the transaction history for a specified wallet address and chain, returning a list of transactions along with a nextOffset for pagination.
Transaction history is supported for embedded wallets on Aptos, Bitcoin, EVM, Solana, Stellar, Sui, TON, and Tron networks. Responses are cached for 5 seconds.Solana: mainnet (network ID
101) and devnet (network ID 103). For devnet, we only retain 2 weeks of transaction history.EVM supported networks:Usage
Filtering by token
PasstokenAddress to limit results to a single token. Use the EVM contract address for ERC-20 tokens or the SPL mint address for Solana tokens. For native assets, use 0x0000000000000000000000000000000000000000 on EVM or the wrapped SOL mint So11111111111111111111111111111111111111112 for native SOL transfers.
React
useGetTransactionHistory loads the first page reactively. Because it’s keyed on the request, load additional pages on demand by calling getTransactionHistory directly in the handler: