Quick Start
Send & Receive on Spark
Learn how to send and receive payments within the Spark network
Prerequisites
- A funded Spark wallet
- The recipient’s Spark address or identifier
- Basic understanding of Spark network operations
Receiving Spark Payments
To receive a payment, you’ll need to share your Spark address. For Spark ↔ Spark transfers, we use Spark addresses. The Spark address format is different from the usual Bitcoin address format which starts with “bc1p”:
Address Example: 030a5f818880a5603b73c9869b37d3ac0bf81e243a48c7b653b28bf52c310b3016
Code Sample:
Sending Spark Payments
Send Bitcoin payments to other Spark users:
Send Token payments to other Spark users:
Receiving Spark Payments
Run getBalance()
with the forceRefetch
option to claim and view the balance.
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:balance
: Abigint
representing the token amount
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