Recommended: JavaScript SDK with React Hooks
For new React apps, we recommend the JavaScript SDK with React Hooks (
@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.Using the JavaScript SDK? See getTransactionHistory for a simpler approach.
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:Parameters
Response
The response includes an array of transactions and anextOffset for pagination:
Each transaction object contains:
Each asset transfer contains:
Using the JavaScript SDK? See getTransactionHistory for a simpler approach.