Send & Receive on Spark
Learn how to send and receive payments between Spark wallets
Receiving Spark Payments
Spark ↔ Spark transfers, use Spark Addresses to identify the receiving wallet. To receive a payment, you’ll need to get your Spark wallet address and share it with the sender. The Spark Address format is similar to the usual Bitcoin address format:
Address Example: sp1pgssyuuuhnrrdjswal5c3s3rafw9w3y5dd4cjy3duxlf7hjzkp0rqx6dj6mrhu
Checkout Spark Addresses for more details.
Code Sample:
Sending Spark Payments
Send Bitcoin payments to other Spark wallets:
Using a Spark Wallet you can also send and receive Tokens to other Spark users:
Receiving Spark Payments
To check balance after a transfer, use the getBalance()
method.
The getBalance()
method returns a Promise resolving to an object containing:
balance
: Abigint
representing the total amount in satoshistokenBalances
: A Map of token balances, where each entry contains:- The public key of the token
- An object with
bigint
representing the token amount
Additionally, you can listen for balance update events.
Features and Benefits
- Instant settlements
- Lower fees compared to on-chain transactions
- Standard pubkey addressing system
Next Steps
After mastering Spark payments, you can:
- Use Lightning Network for external payments
- Exit to Bitcoin when needed
- Explore advanced features in the API Reference
- View all transfers
Need Help?
- Check our FAQ
- Review the API Reference
- Follow our Testing Guide
- Check our Code Samples