To view all transfers for a wallet, you can use the getTransfers method. This method supports pagination through limit and offset parameters. It lists the latest transactions first.
The method accepts two optional parameters for pagination:
limit: Maximum number of transfers to return, if none provided it defaults to 20
offset: Number of transfers to skip before starting to return results
Copy
Ask AI
// Get first 10 transfersconst firstPage = await wallet.getTransfers(10, 0);// Get next 10 transfersconst secondPage = await wallet.getTransfers(10, 10);
This pagination system allows you to:
Load transfers in smaller batches
Navigate through large transfer histories efficiently