bdk icon indicating copy to clipboard operation
bdk copied to clipboard

Add code example for each supported backend

Open w0xlt opened this issue 3 years ago • 4 comments

This PR adds code example for connecting to Esplora, Electrum Server, Neutrino and Bitcoin Core. Also shows how to retrieve balance, sign and broadcast transactions.

To test:

cd examples/backend/
cargo run electrum
cargo run esplora
cargo run neutrino
cargo run rpc_core

w0xlt avatar Jan 12 '22 18:01 w0xlt

Hi, please rebase to pickup changes in #596. Thanks!

notmandatory avatar May 04 '22 17:05 notmandatory

@notmandatory sorry for the delay.

I force pushed a new version that adds examples just for Electrum and Esplora, as there are already examples for Compact Filter and RPC backends.

I also updated the code to 0.20.1 and addressed @rajarshimaitra's suggestion not to add a new cargo project.

w0xlt avatar Jul 26 '22 03:07 w0xlt

The new push added the documentation suggested in https://github.com/bitcoindevkit/bdk/issues/685, explaining how to use use-esplora-reqwest.

w0xlt avatar Jul 27 '22 03:07 w0xlt

I don't know why CI / Rust fmt (pull_request) failed. I ran cargo fmt --all before committing.

It was some temporary problem with rust update server.. I restarted the tests and it passed..

rajarshimaitra avatar Sep 07 '22 06:09 rajarshimaitra

Rebased. Is any additional action required ?

w0xlt avatar Nov 01 '22 23:11 w0xlt