crypto-pb is an extension for PocketBase that automatically scans stored wallet addresses for transactions. It currently supports BTC (mainnet and testnet) and stores the results in PocketBase collections.
The goal is to integrate crypto transactions into your backend flow without the need to poll blockchains yourself.
Current project version: 0.1
The project targets PocketBase 0.22.x (tested with 0.22.7). Other versions may work but are not verified.
- Store the number of confirmations received
- Proper ETH support
- Assign users to wallets and transactions so only they can read them
Build and run the application just like any PocketBase app:
Build and run a binary:
If --testnet is omitted the application uses Bitcoin mainnet. The application will ensure the required collections exist and will start a scheduler that periodically scans all stored wallets.
The examples/python/client.py script demonstrates how to authenticate with the REST API and retrieve data:
- Login as a user
- List wallets with their address and balance
- List all transactions for a selected wallet (amount and confirmations)
List all wallets for a user:
List all transactions for a specific wallet owned by that user:
- Feature requests: please open an issue in the repository.
- Code contributions are very welcome. Fork the repo and open a pull request.
- If you find the project useful consider supporting it via GitHub's Support button.