araknet

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

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

Go to latest
Published: Jan 21, 2020 License: MIT Imports: 21 Imported by: 0

README

araknet

A blockchain built with Golang

Build Araknet CLI locally

  • Have Go installed.
  • Clone Araknet program inside your $GOPATH/src.
  • go get relevant depedencies inside the go.sum file.
  • Build the program by using this command inside your terminal go build .
  • If on Linux you will have to make the Araknet program executable.

CLI

List of commands in the program:


Get all commands
    - ./araknet help

Create a wallet
    - ./araknet createwallet

Create a blockchain (if blockchain does not exists)
    - ./araknet createblockchain -address <address>

Get balance for a specific address
    - ./araknet getbalance -address <address>

Send out Araknet coins
    - ./araknet send -from <your-address> -to <recipient-address> -amount <number of coins>

Print all blocks of the blockchain
    - ./araknet printchain

List all addresses created
    - ./araknet listaddresses

List of errors to encounter when using CLI


<Date(YYYY/MM/DD HH:MM:SS)> ERROR: Not enough funds
    - Occurs when you try to send Araknet coins but you lack enough funds

Blockchain already exists
    - You are trying to create a blockchain from a genesis block but one has already been created

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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