1

Goal:

My goal is to be able to have my own local blockchain indexed so I can perform searches based on public keys.

Blockchain:

wget https://bitcoincore.org/bin/bitcoin-core-0.19.1/bitcoin-0.19.1-x86_64-linux-gnu.tar.gz

I have a full node fully sync'ed

enter image description here

It seems electrs has now fully indexed the blockchain

enter image description here

Electrs was configued based on instructions here:

https://github.com/romanz/electrs/blob/master/doc/usage.md

What's next?

Unsure what to do next? Do I need to create a C# app to connect to the Electrs index using JSON? Do I need to use C# to connect to the rocksdb, which is the database used by electrs to index the blockchain? If any of these is the next step, can someone please provide me with basic start code? As in, how to connect my C# app to the index, pass it a parameter, in this case a public key, and retrieve a value back?

1 Answer 1

1

According to https://github.com/romanz/electrs

The server indexes the entire Bitcoin blockchain, and the resulting index enables fast queries for any given user wallet, allowing the user to keep real-time track of his balances and his transaction history using the Electrum wallet.

Supports Electrum protocol v1.4

It seems to me there are at least three ways forward:

  1. Study the examples in the examples folder and add to electrs the facility you need using the interface of your choice.

  2. Implement the Electrum protocol v1.4 in a custom client that you write. I would start by looking at the source code for Electrum.

  3. use Electrum and import into it any address whose balance you are interested in.

The last seems like it might be the least work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.