Official Go implementation of the Bytom protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paladz aa9dc66331
Merge pull request #1762 from In-Bitcoin-We-Trust/master
3 weeks ago
accesstoken replace goleveldb with tendermint db (#1660) 4 months ago
account fix bug 4 months ago
api Fix mined block broadcast err (#1726) 4 months ago
asset Fix list-assets vm_version field lost (#1705) 4 months ago
blockchain Fix list-assets vm_version field lost (#1705) 4 months ago
cmd fix desc 3 weeks ago
common delete the unused code (#1567) 6 months ago
config add bytom logs into files 3 weeks ago
consensus add relese note and check point for v1.0.9 (#1728) 4 months ago
crypto Support mDNS LAN peer discover (#1687) 4 months ago
dashboard update dashbaord (#1727) 4 months ago
database Process block integra test (#1740) 4 months ago
docs/release-notes add relese note and check point for v1.0.9 (#1728) 4 months ago
encoding Clean vendor (#1309) 11 months ago
env Added env dir. 2 years ago
equity modify dashboard directory (#1453) 9 months ago
errors modify error response (#1039) 1 year ago
event Fix mined block broadcast err (#1726) 4 months ago
log add bytom logs into files 3 weeks ago
math/checked chain's log and math library. 2 years ago
mining fix the bug 4 months ago
net replace goleveldb with tendermint db (#1660) 4 months ago
netsync Fix block fetcher block insert bug 2 months ago
node add bytom logs into files 3 weeks ago
p2p add bytom logs into files 3 weeks ago
protocol add block integration test (#1745) 3 months ago
test add block integration test (#1745) 3 months ago
testutil add serialize tx test (#1651) 5 months ago
util fix the issue 1584 (#1685) 4 months ago
vendor add bytom logs into files 3 weeks ago
version change the version 4 months ago
wallet Merge pull request #1730 from Bytom/prod 4 months ago
.gitignore txpool handle orphan (#1228) 1 year ago
.travis.yml add functional-test to ci 1 year ago
Dockerfile update Dockerfile 1 year ago
LICENSE Added LICENSE. 1 year ago
Makefile fix makefile 9 months ago fix errata 1 month ago


Build Status AGPL v3

Official golang implementation of the Bytom protocol.

Automated builds are available for stable releases and the unstable master branch. Binary archives are published at

What is Bytom?

Bytom is software designed to operate and connect to highly scalable blockchain networks confirming to the Bytom Blockchain Protocol, which allows partipicants to define, issue and transfer digitial assets on a multi-asset shared ledger. Please refer to the White Paper for more details.

In the current state bytom is able to:

  • Manage key, account as well as asset
  • Send transactions, i.e., issue, spend and retire asset

Installing with Homebrew

brew tap bytom/bytom && brew install bytom

Building from source


  • Go version 1.8 or higher, with $GOPATH set to your preferred directory


Ensure Go with the supported version is installed properly:

$ go version
  • Get the source code
$ git clone $GOPATH/src/
  • Build source code
$ cd $GOPATH/src/
$ make bytomd    # build bytomd
$ make bytomcli  # build bytomcli

When successfully building the project, the bytom and bytomcli binary should be present in cmd/bytomd and cmd/bytomcli directory, respectively.


The Bytom project comes with several executables found in the cmd directory.

Command Description
bytomd bytomd command can help to initialize and launch bytom domain by custom parameters. bytomd --help for command line options.
bytomcli Our main Bytom CLI client. It is the entry point into the Bytom network (main-, test- or private net), capable of running as a full node archive node (retaining all historical state). It can be used by other processes as a gateway into the Bytom network via JSON RPC endpoints exposed on top of HTTP, WebSocket and/or IPC transports. bytomcli --help and the bytomcli Wiki page for command line options.

Running bytom

Currently, bytom is still in active development and a ton of work needs to be done, but we also provide the following content for these eager to do something with bytom. This section won’t cover all the commands of bytomd and bytomcli at length, for more information, please the help of every command, e.g., bytomcli help.


First of all, initialize the node:

$ cd ./cmd/bytomd
$ ./bytomd init --chain_id mainnet

There are three options for the flag --chain_id:

  • mainnet: connect to the mainnet.
  • testnet: connect to the testnet wisdom.
  • solonet: standalone mode.

After that, you’ll see config.toml generated, then launch the node.


$ ./bytomd node

available flags for bytomd node:

      --auth.disable                Disable rpc access authenticate
      --chain_id string             Select network type
  -h, --help                        help for node
      --mining                      Enable mining
      --p2p.dial_timeout int        Set dial timeout (default 3)
      --p2p.handshake_timeout int   Set handshake timeout (default 30)
      --p2p.laddr string            Node listen address.
      --p2p.max_num_peers int       Set max num peers (default 50)
      --p2p.pex                     Enable Peer-Exchange  (default true)
      --p2p.seeds string            Comma delimited host:port seed nodes
      --p2p.skip_upnp               Skip UPNP configuration
      --prof_laddr string           Use http to profile bytomd programs
      --vault_mode                  Run in the offline enviroment
      --wallet.disable              Disable wallet
      --wallet.rescan               Rescan wallet
      --web.closed                  Launch web browser or not
      --simd.enable                 Enable the _simd_ feature to speed up the _PoW_ verification (e.g., during mining and block verification)

Given the bytomd node is running, the general workflow is as follows:

  • create key, then you can create account and asset.
  • send transaction, i.e., build, sign and submit transaction.
  • query all kinds of information, let’s say, avaliable key, account, key, balances, transactions, etc.

simd feature:

You could enable the simd feature to speed up the PoW verification (e.g., during mining and block verification) by simply:

bytomd node --simd.enable

To enable this feature you will need to compile from the source code by yourself, and make bytomd-simd.

What is more,

  • if you are using Mac, please make sure llvm is installed by brew install llvm.
  • if you are using Windows, please make sure mingw-w64 is installed and set up the PATH environment variable accordingly.

For more details about using bytomcli command please refer to API Reference


Access the dashboard:

$ open http://localhost:9888/

In Docker

Ensure your Docker version is 17.05 or higher.

$ docker build -t bytom .

For the usage please refer to running-in-docker-wiki.


Thank you for considering helping out with the source code! Any contributions are highly appreciated, and we are grateful for even the smallest of fixes!

If you run into an issue, feel free to bytom issues in this repository. We are glad to help!