Bitcoin Proof of Work

(With try yourself code!) As much as bitcoin (note here Iā€™m talking about the software also known as bitcoin core) is a highly complex system many of the basic elements can be fairly easily described and demonstrated. Here I’ll demonstrate a very simple example using python showing how mining works and how something called ‘difficulty’ […]

Piping Bitcoin RPC Commands

If you want to get the block header of the latest block generated on the bitcoin blockchain using bitcoin-cli it’s a little tricky (and hard to say!). You need to first find the latest block number (height), then find the hash of that block and then get the header using the hash. Since the getblockheader […]

Bitcoin RPC Commands over SSH Tunnel

If you’re running a Bitcoin full node and want to run RPC commands against the Bitcoin client from a remote machine the easiest and safest way to do this is using Port Forwarding over an SSH connection. What is Port Forwarding used for? Secure access to a port that is otherwise not listening on a […]

Monitoring a Bitcoin Node Using Node-RED

Now my Bitcoin Full Node is fully synchronized and running I thought it would be good to set up some simple monitoring to check it’s still up and up to date with the Bitcoin Blockchain. Bitnodes API Helpfully there’s already a site that monitors all the full nodes and also provides a handy API at […]

Running a Bitcoin Full Node on a Raspberry Pi 4

First Attempt I’ve wanted to run a Bitcoin full node for a while now. Not because it makes any money, quite to the contrary, it actually costs money to run a node, but to better understand a technology there’s nothing better than learning by doing šŸ§  A full node is a program that fully validates […]