Quick Start
View all transfers
Learn how to view all transfers for a wallet
Prerequisites
- A Spark wallet created following the Create First Wallet guide
- Some Bitcoin (BTC) in a Bitcoin wallet
- Send or receive funds on Spark Send & Receive on Spark
- Send or receive funds from lightning Send & Receive on Lightning
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
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
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:
- Use Lightning Network for external payments
- Exit to Bitcoin when needed
- Explore advanced features in the API Reference
Need Help?
- Check our FAQ
- Review the API Reference
- Follow our Testing Guide
- Check our Code Samples