A blockchain based on proof of work implemented in Rust.
If you want to print the log info in terminal: RUST_LOG=info cargo run <Subcommand> [Arguments]
CLI Command:
Currently in development stage,we need add cargo run in each command.
# print chain
cargo run printchain
# reindex unspent-transaction-output set
cargo run reindex
# create wallet
cargo run createwallet
# create blockchain
cargo run createblockchain <address>
# get balance
cargo run getbalance <address>
# list all addresses
cargo run listaddresses
# send amount (if -m is specified, the block will be mined immediately in the same node)
cargo run send <from address> <to address> <amount> -m
# start node server
cargo run startnode <port>
# start mine server
cargo run minernode <port> <address>Network (main)
Reference: blockchain_go blockchain-rust