Overview
Receiving payments with Arkade is simple and efficient. Your wallet can generate addresses for both boarding and ark payments, allowing your users to send Bitcoin to you through either method.Getting Your Wallet Address
To receive payments, you first need to generate an address:Ark Addresses
Ark addresses start withark1
on Bitcoin mainnet or tark1
on testnet and regtest.
Understanding Ark Addresses
Learn about the technical structure of Ark addresses, how they’re generated, and the security guarantees they provide.
Monitoring for Incoming Payments
To detect when payments are received, you can useWallet.notifyIncomingFunds()
for incoming transactions in real-time.
Best Practices
Error Handling
Error Handling
Always implement proper error handling for your subscription to ensure your application remains stable even if there are network issues.
Reconnection Logic
Reconnection Logic
Consider implementing reconnection logic if the subscription is interrupted due to network issues.
Deduplication
Deduplication
Implement deduplication logic to ensure you don’t process the same payment multiple times, especially if your application restarts.
Next Steps
- Check Balances - Learn how to verify your wallet balance after receiving payments
- Send Payments - Learn how to send payments to others
- Payment History - Track all your received and sent payments