line

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.0.2

type Interface struct{}

Interface struct for handling command line interface

func (*Interface) CreateBlockChain added in v0.0.2

func (inter *Interface) CreateBlockChain(address string)

CreateBlockChain to create a blockchain with the address as the genesis.

func (*Interface) CreateWallet added in v0.0.2

func (inter *Interface) CreateWallet()

CreateWallet to create a wallet in the addressbook

func (*Interface) GetBalance added in v0.0.2

func (inter *Interface) GetBalance(address string)

GetBalance to get the balance from the address

func (*Interface) Help added in v0.0.2

func (inter *Interface) Help()

Help to print help information for the CommandInterface

func (*Interface) ListAddresses added in v0.0.2

func (inter *Interface) ListAddresses()

ListAddresses to list all addresses in the addressbook

func (*Interface) PrintChain added in v0.0.2

func (inter *Interface) PrintChain()

PrintChain to print the Blocks in the BlockChain from inter

func (*Interface) PrintUsage added in v0.0.2

func (inter *Interface) PrintUsage()

PrintUsage for printing usage instructions

func (*Interface) PrintVersionInfo added in v0.0.2

func (inter *Interface) PrintVersionInfo()

PrintVersionInfo to print version information of the system

func (*Interface) Run added in v0.0.2

func (inter *Interface) Run()

Run to run the command line interface

func (*Interface) Send added in v0.0.2

func (inter *Interface) Send(from, to string, amount int)

Send to send the amount from FROM to TO

func (*Interface) ValidateArguments added in v0.0.2

func (inter *Interface) ValidateArguments()

ValidateArguments to validate the arguments for the CommandInterface

Jump to

Keyboard shortcuts

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