<p>According to <a href="https://github.com/romanz/electrs" rel="nofollow noreferrer">https://github.com/romanz/electrs</a></p>
<blockquote>
<p>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.</p>
<p>Supports Electrum protocol v1.4</p>
</blockquote>
<p>It seems to me there are at least three ways forward:</p>
<ol>
<li><p>Study the examples in the examples folder and add to electrs the facility you need using the interface of your choice.</p>
</li>
<li><p>Implement the Electrum protocol v1.4 in a custom client that you write. I would start by looking at the <a href="https://github.com/spesmilo/electrum" rel="nofollow noreferrer">source code for Electrum</a>.</p>
</li>
<li><p>use Electrum and import into it any address whose balance you are interested in.</p>
</li>
</ol>
<p>The last seems like it might be the least work.</p>

CC BY-SA 4.0
2020-05-17T09:25:09.593Z
2020-05-17T09:25:09.593Z
2020-06-16T11:10:03.350Z
RedGrittyBrick
<p><strong>Goal:</strong></p>

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

<p><strong>Blockchain:</strong></p>

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

<p>I have a full node fully sync'ed</p>

<p><a href="https://i.sstatic.net/IC8S3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/IC8S3.png" alt="enter image description here"></a></p>

<p>It seems electrs has now fully indexed the blockchain</p>

<p><a href="https://i.sstatic.net/R8x9n.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/R8x9n.png" alt="enter image description here"></a></p>

<p>Electrs was configued based on instructions here:</p>

<p><code>https://github.com/romanz/electrs/blob/master/doc/usage.md</code></p>

<p><strong>What's next?</strong></p>

<p>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?</p>

<bitcoin-core><ubuntu><c#>
How do I connect to the Electrs index?
oshirowanen
# How do I connect to the Electrs index?

(Asked by: username_0 on 2020-05-17)

**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](https://i.sstatic.net/IC8S3.png)](https://i.sstatic.net/IC8S3.png)

It seems electrs has now fully indexed the blockchain

[![enter image description here](https://i.sstatic.net/R8x9n.png)](https://i.sstatic.net/R8x9n.png)

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?

**Tags:** bitcoin-core, ubuntu, c#


---

## 1 answers

### Answer by username_1 on 2020-05-17. Score: 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](https://github.com/spesmilo/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.


---

