blockchain-start

command module
v0.0.0-...-c8f8a2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 2 Imported by: 0

README

Blockchain in Go

Go Report Card GitHub version

A basic blockchain implementation in Golang

Usage

Get the balance for an address

$ go run main.go getbalance -address ADDRESS

Create a blockchain and send genesis reward to address

$ go run main.go createblockchain -address ADDRESS

Print the blocks in the chain

$ go run main.go printchain

Send amount of coins

$ go run main.go send -from FROM -to TO -amount AMOUNT

Create a new Wallet

$ go run main.go createwallet

List the addresses in wallet file

$ go run main.go listaddresses

Rebuild the UTXO set

$ go run main.go reindexutxo

Start a node with ID specified in NODE_ID env. var. -miner enables mining

$ go run main.go startnode -miner ADDRESS

Wiki

Requirements

  • github.com/dgraph-io/badger
  • github.com/mr-tron/base58
  • golang.org/x/crypto
  • gopkg.in/vrecan/death.v3
Video Tutorials

Tensor Programming

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL