To setup a neighborhood occasion working within the regtest
community, you mainly simply should run bitcoind -regtest
as traditional, after which comply with the directions given by the electrs
set up directions:
$ git clone https://github.com/blockstream/electrs && cd electrs
$ git checkout new-index
$ cargo run --release --bin electrs -- -vvvv --daemon-dir ~/.bitcoin
Nonetheless, it’s a must to give a --network=regtest
to the final command and presumably have to adapt you bitcoin dir.
After the chain made some progress, the log outputs of electrs
will spit out localhost addresses you may give to BDK, LDK transaction sync, or simply an occasion of rust-esplora-client
:
INFO – REST server working on 127.0.0.1:3002
(Word that an Electrum RPC handle can also be given in case you favor to make use of the Electrum protocol)