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!
Charting Bitcoin On-Chain Data
9 replies 314 views
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
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. 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.
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.
checking this now. thank you
If what youre 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, its a good reference. He uses Prometheus (https://prometheus.io) to pull data straight from his node and feed it into Grafana dashboards. Once its up, you can monitor almost everything including mempool, blocks, peers, fee rates, you name it all in real time and without relying on anyone elses API.
It takes a bit of work to get going especially wiring up Prometheus and Grafana but once youve done it, youll 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.
Thank you for these responses I am reading them now. Very useful. Will be spending time on each lead given here.
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/
pixel_2009Member
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
Related topics
- Bitcoin Core displaying coins (UTXOs) in a new tab 13
- Are you in favor of BIP-110? Let's get a Bitcoin poll going. 0
- Erlay seems to have some issues here’s a better proposal for a bitcoin protocol without invites 3
- Ways to earn some sats by contributing to bitcoin core development 5
- Exploring the Potential and Challenges of a Kardashev-Scale Bitcoin Network 3
- What can I do to fix this Bitcoin Core error? 8