https://github.com/rggh/bdk_3axum
Rust - BDK - Axum
https://github.com/rggh/bdk_3axum
axu bdk bitcoin wallet
Last synced: about 2 months ago
JSON representation
Rust - BDK - Axum
- Host: GitHub
- URL: https://github.com/rggh/bdk_3axum
- Owner: RGGH
- Created: 2023-11-23T22:22:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T12:21:41.000Z (over 2 years ago)
- Last Synced: 2025-07-30T08:47:48.128Z (11 months ago)
- Topics: axu, bdk, bitcoin, wallet
- Language: Rust
- Homepage: https://redandgreen.co.uk/bitcoin-testnet-test-faucet/bitcoin-programming/
- Size: 521 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning Rust, Axum, BDK
My bad..I thought BDK needed to use a database...Duh! - That's what the xprv is for!
This code will look ugly, I'll refactor in due course.
BIP44 specifies the structure as consisting of five
predefined tree levels:
m / purpose' / coin_type' / account' / change / address_index
https://github.com/bitcoinbook/bitcoinbook/blob/develop/ch05.asciidoc#extended-keys
uses : Bitcoin Testnet + Electrum
- Create Bitcoin Wallet and save xrpv to json (totally insecure, but this is for learning)
- Load wallet from xprv
- Create PSBT + Sign + Broadcast
Note : tb1 = testnet bech32 addresses / corresponding prefix on mainnet would be bc1
#### https://redandgreen.co.uk/bitcoin-testnet-test-faucet/bitcoin-programming/
#### endpoints
/
api/gen_wallet
api/load_wallet
#### xprv is read from json
{"xprv":"xprv9s21ZrQH143K2x5hVoEpv7wE9e4Mk4eeMW2yj1P6EYsL3bexhFi4aFKMWeWw5p7u3kGtZonxoX3EPp3oQtBsxSmWqw6TcTq6ttNt44QhXDs","network": "testnet"}