Open bitcoinheiro opened 3 years ago
Hi Bitcoinheiro,
Thanks for your feedback, we will start working on this.
I would use the node command: bitcoin-cli getblockchaininfo every 2 minutes to get the blockheight
and bitcoin-cli gettxoutsetinfo every 2 hours to update the supply (since it consumes way more resources to execute)
And use these json for all the blockchain related information to be displayed.
One example of how the raspiblitz project uses this can be found at: https://github.com/rootzoll/raspiblitz/blob/v1.6/home.admin/00infoBlitz.sh
Hi guys,
Since umbrel basically runs all over Tor, would be great if you could use sources via Tor instead of clearnet. Also I would not use blockchain dot info as it's a hostile bitcoin service, probably infected by chain analysis companies.
I would use the blockstream API instead to fetch information via Tor (https://github.com/Blockstream/esplora/blob/master/API.md). Even better to use the own node bitcoind for blockheight and other blockchain related information. Using another source of truth defeats the purpose to run the own node.