Prerequisites

View all transfers

To view all transfers for a wallet, you can use the getAllTransfers method. This method supports pagination through limit and offset parameters. It lists the latest transactions first.

Basic Usage

const transfers = await wallet.getAllTransfers();
console.log(transfers);

Pagination

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
// Get first 10 transfers
const firstPage = await wallet.getAllTransfers(10, 0);

// Get next 10 transfers
const secondPage = await wallet.getAllTransfers(10, 10);

This pagination system allows you to:

  • Load transfers in smaller batches
  • Navigate through large transfer histories efficiently
  • Reduce memory usage and response times

Next Steps

Now that you’ve created your first wallet, you can:

Need Help?