A basic blockchain-based peer-to-peer cryptocurrency
- golang >= 1.20
bash build.sh
To start a node
./bcnode
To start a mining node
./bcnode --miners <numCpuCores> --payout <publicKeyHash>
You can generate a miner payout address with the cli generate
command. Your miner will probably find a few useless blocks while it's still syncing its chain with the seed peer.
To persist the chain to disk (uses several hundred MB)
./bcnode --save-dir=<path-to-save-directory>
For more info
./bcnode --help
To view available commands
./bcwallet help
To generate a new wallet address
./bcwallet generate
To view your balance
./bcwallet balance
To send money to an address
./bcwallet send <address>:<amount>