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 Solana and EVM 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:| Network | Mainnet ID | Testnet ID |
|---|---|---|
| Ethereum | 1 | 11155111 (Sepolia) |
| Optimism | 10 | 11155420 (Sepolia) |
| Rootstock | 30 | 31 |
| BNB Smart Chain | 56 | 97 |
| Gnosis | 100 | 10200 (Chiado) |
| Unichain | 130 | 1301 (Sepolia) |
| Polygon | 137 | 80001 (Mumbai), 80002 (Amoy) |
| zkSync Era | 324 | 300 (Sepolia) |
| Shape | 360 | 11011 (Sepolia) |
| World Chain | 480 | 4801 (Sepolia) |
| Hyperliquid | 999 | 998 |
| Story | 1514 | 1315 (Aeneid) |
| Soneium | 1868 | 1946 (Minato) |
| Ronin | 2020 | 202601 (Saigon) |
| Abstract | 2741 | 11124 |
| ApeChain | 33139 | 33111 (Curtis) |
| Arbitrum One | 42161 | 421614 (Sepolia) |
| Arbitrum Nova | 42170 | — |
| Celo | 42220 | 11142220 (Sepolia) |
| Avalanche | 43114 | 43113 (Fuji) |
| Robinhood Chain | — | 46630 |
| Ink | 57073 | 763373 (Sepolia) |
| Linea | 59144 | 59141 (Sepolia) |
| Berachain | 80094 | 80069 (Bepolia) |
| Blast | 81457 | 168587773 (Sepolia) |
| Base | 8453 | 84532 (Sepolia) |
| Scroll | 534352 | 534351 (Sepolia) |
| Zora | 7777777 | 999999999 (Sepolia) |
Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
address | String | Yes | The wallet address to fetch transactions for |
chain | Chain | Yes | The chain to query transactions for (e.g., SOL for Solana, EVM for EVM networks) |
networkId | Number | Yes | The network ID (e.g., 101 for Solana mainnet, 1 for Ethereum mainnet) |
limit | Number | No | Maximum number of transactions to return |
offset | String | No | Pagination offset from previous response |
Response
The function returns a Promise that resolves to an object containing:| Property | Type | Description |
|---|---|---|
transactions | Array | List of transaction objects |
nextOffset | String | Offset to fetch the next page of transactions |
Transaction object
Each transaction object contains:| Property | Type | Description |
|---|---|---|
transactionHash | String | The transaction hash |
blockNumber | Number | Block number of the transaction |
transactionTimestamp | String | ISO 8601 timestamp of the transaction |
blockHash | String | Hash of the block containing the transaction |
blockExplorerUrls | String[] | URLs to view the transaction on block explorers |
fromAddress | String | Sender address |
toAddress | String | Recipient address |
labels | String[] | Transaction type labels: sent, receive, or swap |
assetTransfers | Array | Details of assets transferred in the transaction |
chainName | String | The blockchain type |
networkId | Number | The network ID |
transactionType | String | Enhanced transaction type (e.g., TRANSFER, SWAP). Only present for Solana transactions. |
source | String | The program or protocol that originated the transaction (e.g., SYSTEM_PROGRAM, JUPITER). Only present for Solana transactions. |
description | String | Human-readable description of the transaction. Only present for Solana transactions. |
spam | Boolean | Whether the transaction is likely spam (e.g., dust attacks). Only present for Solana transactions. |
Asset transfer object
Each asset transfer contains:| Property | Type | Description |
|---|---|---|
tokenAddress | String | Contract address of the token (empty for native tokens) |
fromAddress | String | Sender address for this transfer |
toAddress | String | Recipient address for this transfer |
amount | Number | Amount transferred in the token’s smallest unit (e.g., lamports for SOL, raw units for SPL tokens). Use metadata.decimals to convert to a human-readable value. |
metadata | Object | Token metadata (name, symbol, decimals, imageUri) |