<p>There are open-source projects available that make building your own query service possible. A good example would be Libbitcoin, see <a href="https://github.com/libbitcoin" rel="nofollow noreferrer">their github</a> and <a href="https://libbitcoin.org" rel="nofollow noreferrer">official website</a>.</p>

<p>You need to install libbitcoin server - this is a full bitcoin node with a database, and libbitcoin explorer - a set of tools among which you will find one for querying the server about addresses (balances and whatnot).</p>

<p>Be aware that the server will download the whole blockchain. It is not possible to have your own query server without having the blockchain on hand.</p>

CC BY-SA 3.0
2018-03-15T14:27:48.733Z
I was hoping to have a serverless function run every 10 minutes and download the blockchain like so. Can I not tell it, that I already have upto block N somewhere and I would like to start downloading from block N+1 ?
Kyle Graham
CC BY-SA 3.0
2018-03-15T20:10:47.187Z
Perhaps you could run Bitcoin Core (you can have it without GUI), download the whole blockchain, install and run bitcoin-abe or some other software that would just query Bitcoin Core API to build its own database and after that enable pruning in Bitcoin Core to get rid of the most of the blockchain and save space. However, you would have to research that further, I have not done it, so I cannot give you step-by-step instructions.
streamofstars
CC BY-SA 3.0
2018-03-15T11:58:28.390Z
2018-03-15T11:58:28.390Z
streamofstars
<p>Can I download the blockchain onto a cloud service then build an api to search it? maybe put it on a noSQl database?</p>

<p>What would be the best way?</p>

<p>Or even better, is there a way to not download the whole blockchain but, build an api that uses SPV to get just the transactions of a certain public address?</p>

<p>I have been trying to use the apis out there such as blockchain, block.io, insightpay, etc, but they all limit me in terms of API usage and I they are all bad at dealing with transactions where there are hundreds of inputs. Not sure how common this is, but it is a problem.</p>

<p>Thanks</p>

<blockchain><blockchain.info><api>
Is it possible to build a blockchain explorer to put on aws?
Kyle Graham
# Is it possible to build a blockchain explorer to put on aws?

(Asked by: username_0 on 2018-01-13)

Can I download the blockchain onto a cloud service then build an api to search it? maybe put it on a noSQl database?

What would be the best way?

Or even better, is there a way to not download the whole blockchain but, build an api that uses SPV to get just the transactions of a certain public address?

I have been trying to use the apis out there such as blockchain, block.io, insightpay, etc, but they all limit me in terms of API usage and I they are all bad at dealing with transactions where there are hundreds of inputs. Not sure how common this is, but it is a problem.

Thanks

**Tags:** blockchain, blockchain.info, api


---

## 1 answers

### Answer by username_1 on 2018-03-15. Score: 1

There are open-source projects available that make building your own query service possible. A good example would be Libbitcoin, see [their github](https://github.com/libbitcoin) and [official website](https://libbitcoin.org).

You need to install libbitcoin server - this is a full bitcoin node with a database, and libbitcoin explorer - a set of tools among which you will find one for querying the server about addresses (balances and whatnot).

Be aware that the server will download the whole blockchain. It is not possible to have your own query server without having the blockchain on hand.

> **Comments:**
> **username_0**: I was hoping to have a serverless function run every 10 minutes and download the blockchain like so. Can I not tell it, that I already have upto block N somewhere and I would like to start downloading from block N+1 ?  
> **username_1**: Perhaps you could run Bitcoin Core (you can have it without GUI), download the whole blockchain, install and run bitcoin-abe or some other software that would just query Bitcoin Core API to build its own database and after that enable pruning in Bitcoin Core to get rid of the most of the blockchain and save space. However, you would have to research that further, I have not done it, so I cannot give you step-by-step instructions.  

---

