Charting Bitcoin On-Chain Data

9 replies 314 views
dave.nodeMember
Posts: 3 · Reputation: 58
#1Feb 27, 2019, 04:49 AM
Hey everyone, I’m trying to figure out how to create charts using on-chain Bitcoin data straight from my own full node. Currently, I'm depending on APIs from third-party services for on-chain data, and I use Plotly combined with Node.js/HTML to visualize that info. But I want to be more independent: run my own full Bitcoin node, pull the historical chain data myself, and create charts without relying on others. As far as I understand, I need to operate a full node and set up an indexer, but I’m a bit lost on what to do next. Any tips, guides, or examples of similar projects would be greatly appreciated. Thanks a lot!
8 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#2Feb 27, 2019, 09:57 AM
You can try "BTC RPC Explorer" by janoside but I'm not sure if its "tools" are comparable to those online APIs that you're using. There is an online live demo (linked in the repo) for you to try its features, however it's somehow offline right now. Link to GitHub Repository: github.com/janoside/btc-rpc-explorer
1 Reply Quote Share
alt21Senior Member
Posts: 398 · Reputation: 1732
#3Feb 27, 2019, 10:10 AM
You could also check statoshi.info by J. Lopp. It's basically data dumped on a Grafana instance, which makes it easy to visualize. The code is here: https://github.com/jlopp/statoshi
1 Reply Quote Share
hash_bossLegendary
Posts: 1166 · Reputation: 5261
#4Mar 1, 2019, 06:43 AM
1. You can avoid building some index manually if you also run Electrum server. 2. I don't know what 3rd party API you use. But you may want to consider running self-hosted block explorer (such as https://github.com/mempool/mempool) which also provide API, rather than calling Bitcoin RPC-JSON or Electrum server manually.
1 Reply Quote Share
yield_forkFull Member
Posts: 162 · Reputation: 728
#5Mar 1, 2019, 08:45 AM
I'd try plug-in-play nodes like Umbrel OS or MyNode. I've been running electrs (Electrum server) and btc-rpc-explorer for a while (since 2020-2024), but for some reason I can't install and run either anymore.   I used to follow this guide: https://raspibolt.org/guide/bitcoin/electrum-server.html (Just yesterday I spent almost the entire day trying on Ubuntu Linux). I think the instructions are outdated. I think the best solution for me (and perhaps for you) would be to run a ready-made solution like Umbrel or MyNode. Both will give you your own node, block explorer and other cool applications.
0 Reply Quote Share
dave.nodeMember
Posts: 3 · Reputation: 58
#6Mar 1, 2019, 10:14 AM
checking this now. thank you
2 Reply Quote Share
s33d_moonFull Member
Posts: 235 · Reputation: 715
#7Mar 1, 2019, 12:06 PM
If what you’re aiming for is full control of your own data and some nice visuals on top, then I'll suggest running Electrs (https://github.com/romanz/electrs) with your Bitcoin full node and then hooking it up to Grafana (https://grafana.com) through a simple metrics setup. You can check out Statoshi (https://github.com/jlopp/statoshi) by Jameson Lopp, it’s a good reference. He uses Prometheus (https://prometheus.io) to pull data straight from his node and feed it into Grafana dashboards. Once it’s up, you can monitor almost everything including mempool, blocks, peers, fee rates, you name it all in real time and without relying on anyone else’s API. It takes a bit of work to get going especially wiring up Prometheus and Grafana but once you’ve done it, you’ll have your own fully self-hosted setup. No third-party dependence, just pure Bitcoin data visualized the way you want it. I hope this helps you.
3 Reply Quote Share
dave.nodeMember
Posts: 3 · Reputation: 58
#8Mar 3, 2019, 07:17 AM
Thank you for these responses I am reading them now. Very useful. Will be spending time on each lead given here.
2 Reply Quote Share
ryanaltFull Member
Posts: 80 · Reputation: 402
#9Mar 3, 2019, 12:58 PM
You can try this visualized tx street that is available for some cryptocurrencies, not only for Bitcoin. https://txcity.io/ Some other sites. https://anatomyofbitcoin.com/explorer/ https://transactionfee.info/
3 Reply Quote Share
Posts: 10 · Reputation: 90
#10Mar 3, 2019, 03:21 PM
I use the blockchain-etl library to extract from the local node and create the visualization with Jupter Lab (data analytics). The data output format is very similar to third-party APIs. https://github.com/blockchain-etl/bitcoin-etl
0 Reply Quote Share

Related topics