This is a simple Next.js app that showcases the functionality of generating a testnet Bitcoin payment request. It allows users to display a QR code for the payment and monitor the payment status.
- Generate a new HD wallet on demand (persistence is done using
LocalStorage) - User input for specifying the tBTC amount for the payment
- Generate a QR code for the payment request based on the wallet address and specified amount
- Real-time updates by polling until the payment is received (balance updated) or displaying a timeout message after 10 minutes
pnpm install pnpm dev
- This application uses the Bitcoin testnet; no real money is involved
- You can obtain testnet BTC from a testnet faucet
Contributions are welcome! If you find a bug or have a suggestion, please open an issue or submit a pull request.