gophergala2016/be

Name: be

Owner: gophergala2016

Description: A Bitcoin Blockchain explorer for the terminal

Created: 2016-01-23 09:46:04.0

Updated: 2018-05-02 08:50:44.0

Pushed: 2016-01-24 23:33:46.0

Homepage:

Size: 3226

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

be (blockchain explorer)

be is a Bitcoin Blockchain explorer for the terminal that uses the Insight API to get data from the Blockchain. By default it uses the Insight Live URL but in case you're running your own node, the URL can be defined by --api-url <url>

Both TUI and CLI modes are implemented. TUI is used by default, you can switch to CLI mode using the --cli parameter.

What is a blockchain explorer?

In the Bitcoin network, all new data about bitcoin addresses and transactions is periodically archived into immutable blocks, which build on top of the previous block that was archived. This distributed chain of blocks is known as the blockchain. You can think of it as a Git repository for money.

A blockchain explorer is a tool that allows you to inspect the status of the blockchain and obtain information about any block, address or transaction that took place in the Bitcoin network. be is a blockchain explorer for the terminal, which uses Insight's API; Insight is a web blockchain explorer.

Use
Watch latest blocks mined

Use the arrow keys to move between blocks, press Enter to examine a block (as in be -b <height>) and press Q to exit.

be screenshot

Watch latest blocks mined (CLI mode)
 --cli
785 (2016-01-24 12:31:12) 745txs 503Kb [Discus Fish]
784 (2016-01-24 12:26:27) 1501txs 971Kb
783 (2016-01-24 12:23:41) 1983txs 731Kb [Slush]
782 (2016-01-24 12:13:07) 2847txs 965Kb [BitMinter]
781 (2016-01-24 11:48:05) 128txs 121Kb [AntMiner]
780 (2016-01-24 11:46:35) 1053txs 707Kb
779 (2016-01-24 11:43:57) 2715txs 976Kb [Discus Fish]
778 (2016-01-24 11:15:13) 940txs 471Kb
777 (2016-01-24 11:08:22) 248txs 121Kb
776 (2016-01-24 11:07:02) 185txs 142Kb [Discus Fish]
775 (2016-01-24 11:05:54) 824txs 889Kb
774 (2016-01-24 11:00:20) 450txs 378Kb
773 (2016-01-24 10:58:11) 1699txs 677Kb
772 (2016-01-24 10:51:05) 1446txs 926Kb
771 (2016-01-24 10:41:35) 2651txs 926Kb
770 (2016-01-24 10:15:20) 965txs 441Kb
769 (2016-01-24 10:07:50) 1301txs 639Kb
768 (2016-01-24 09:56:42) 389txs 207Kb [AntMiner]
767 (2016-01-24 09:53:51) 844txs 536Kb
766 (2016-01-24 09:48:33) 353txs 216Kb
Address (CLI mode)

Get address information, including balance, amount sent, amount received and transaction list.

 --cli -a 18KfSXSHJVHK1CMS5yvbfaAfW318K9NCVd
ess: 18KfSXSHJVHK1CMS5yvbfaAfW318K9NCVd
l Received: 9.53021049
l Sent: 9.53021049
l Balance: 0.00000000
nfirmed Balance: 0.00000000
l Transactions: 2

sactions:
---------
3e1ae8b3b070da93b27ec1064f75c1803116e0efcfc5b5dbfa405b3059c6
cf5ed33449586d438c7bd3d6e05410749b483453173bb6b8cbf04b178820
Transaction (CLI mode)

Inspect a transaction, including inputs, outputs, confirmations, block hash, value in and value out.

 --cli -t 43699b5a4a9f2041bf8d3307f2944e0c25edbf800041a6c5df3511f337e4a61b
saction ID: 43699b5a4a9f2041bf8d3307f2944e0c25edbf800041a6c5df3511f337e4a61b
ived Time: 2016-01-11 21:10:16
d Time: 2016-01-11 21:10:16
e Out: 0.063286
e In: 0.063386
 (bytes): 226
: 0.000100
d in block: 000000000000000007fd9bb20f163ffa52d61991b630e7102394938ad776e200
irmations: 2009

ts:
---
PcBWSpJs6dN9t2cCXj6k1ySngj4TKp 0.06338620

uts:
----
L7HTRzwvxrqWFgkx18DgKZyt3VcJgu 0.02200000
PcBWSpJs6dN9t2cCXj6k1ySngj4TKp 0.04128620
Block (CLI mode)

Inspect blocks, including number of confirmations, list of transactions, size, block reward, height and miner. Takes either block hash or height as arguments.

 --cli -b 0000000000000000016491fbaabd1db0a89a4a281c4a14c27e3ec56f20c8b2bb | head -n 20
k #394654
---------
irmations: 132
er Of Transactions: 1419
ht: 394654
k Reward: 25.000000
stamp: 2016-01-23 16:47:26
d by: AntMiner
le Root: 54065db739429e50d887968cc130d34cda9b2a9571d5d38e58ba58436352f8de
iculty: 113354299801.471130
 (Kilobytes): 911
e: 3611731857

sactions:
---------
b0b82e3b376d3d10fb5aef7e9eebba773edec87246fc517f5edef50fd7b2
31cf33dc16eb9c3c2d1f15728764aa394cb6e7b1eaecf6c188f2549e87c6
d611e4d2a69b49ae06f96bc2b7e5aa52469220b0e1ec4b86b20a60b34acf
909dd1bbd4494d89aa82f5799a85ea5704634c001fa7516bf9b04b44a117
3a3b566fa81f59ccdb5d28068ec6a40a81a48fae7235997e9e58f574e00d
Install

Install in your $GOPATH/bin:

et -u github.com/gophergala2016/be

Using Docker:

ke container
cker run --rm -it be
TODO

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.