12 rows · 2 days ago · Height Age Transactions Total Sent Total Fees Block Size (in bytes) . Look up Bitcoin (BTC) blocks, transactions, addresses, balances, nodes, OP_RETURN data and protocols, blockchain stats and charts. Blockstream Explorer is an open source block explorer providing detailed blockchain data across Bitcoin, Testnet, and Liquid. Supports Tor and tracking-free.
Building a bitcoin block explorerBitcoin Explorer — Blockchair
As mentioned, initial block download is going to take at least a few days. During this phase, the daemon may use a lot of resources. Once you're caught up, running the node software has a negligible effect on performance with even a modest machine. If you've made it this far, bookmark the page and come back in a few days when your node is in sync! Welcome back! It's time to configure your node to act as a JSON-RPC server, so we can run and write code in our favorite language to interact with it.
Navigate back to the bitcoin directory and create a flat-text file called bitcoin. Henceforth, this file will be read when bitcoind starts and will be used to configure options for your node. There are a number of options you can set, and each of these can also be set at command line as well. To get a sense of the options available to you, run:. Open up the bitcoin.
This is a good start, but not sufficient to enable RPC interaction with our node. To do so, we also have to create authentication credentials for the user who will log in. It used to possible to specify a username and password in flat text in the config file, but this method is clearly insecure and has been deprecated.
Instead, we have to provide the username along with the hash value of the password-- in conjunction with a salt used during hashing. To generate this, use the following commands to download the canonical Python script provided by the Bitcoin Core team and run it with your own username and password.
Be sure to replace the username and password values with something sane! The script should produce a result like this:. As instructed, add this line to your bitcoin. To test this out, try running the following command note: you may have to install curl first via apt.
Be sure to replace myusername with username you actually created. You'll be prompted for the associated password, and if all worked properly, you should see something like the following:. To learn more about the full set of API calls available, and various libraries that exist that wrap the API, checkout this reference on bitcoin. This is fine if you'll be developing on the same box the node is on, and you can skip this section.
If you're developing from a different machine, like a Windows or macOS computer, you'll have to use the rpcallowip option to whitelist IP addresses which are allowed to make calls, and also ensure port is reachable. Note that a VM, though running on the same hardware, does in fact have a unique IP. Note that you can include this option more than once to whitelist multiple IP addresses. The specifics of finding your development machine's IP and making port available on your node are dependent on your platform and network.
These are left as an exercise to the reader. Here's an example of what your final bitcoin. With your full node up and running, synced to the network, and configured for use as JSON-RPC server, it's time to run your own local blockchain explorer! We'll use the open source btc-rpc-explorer , created by Dan Janosik.
This explorer is great because it doesn't use a database-- it just needs access to your node, which it interacts with via the RPC interface we just configured. If you don't already have these, checkout the instructions for your development platform of choice. Once Node and npm are ready to go, clone the repo from GitHub and build it with the following commands which assume a Unix dev environment :.
If you're dev box is not the same as your node, you'll also have to update the host parameter to the IP address of your node. Note also that your router may assign either you development box or your node a new IP in the future. Look into configuring static local IPs based on MAC addresses in your router's config panel to solve this issue. With the credentials updated, you're ready to run the explorer. Happy hacking! Go beyond the hype and separate the signal from the noise.
Subscribe to receive a weekly dose of blockchain reality, with a heavy bias toward the technical. Build Blockchain Blog. Prerequisites Because this guide is for developers, it assumes you're comfortable doing developery things, such as running Linux, using bash, and executing Python scripts. Installing bitcoind The Bitcoin network follows a protocol for communication and consensus. You can do this by running: crontab -e and adding the following line: reboot bitcoind -daemon Note that we didn't add the txindex option to the crontab.
Server Configuration Welcome back! To get a sense of the options available to you, run: bitcoind --help Open up the bitcoin. The script should produce a result like this: String to be appended to bitcoin. While not required, if you'd like to support the network by servering data, make sure your router is configured to forward port to the machine with your.
View fullsize. Blocks , Transactions ,, Outputs 1,,, Stats Circulation: 18,, BTC. Difficulty: 18,,,, Next readjustment: in 2 days. Blockchain size: Latest block: Best block time: Network nodes: 8, Transactions: , On-chain volume: 2,, BTC.
Hashrate: Txs per second: 4. Mempool Recommended fee: 69 satoshi per byte. Transactions: 20, Size: Explorers BTC. Awesome Bitcoin services Exchanges. Crypto processors. Savings accounts.