An open API service indexing awesome lists of open source software.

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

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"}