Documentation
¶
Index ¶
- Variables
- func AddBalance(address core.Address, amount int, bc *core.Blockchain) error
- func CreateBlockchain(address core.Address, db storage.Storage, consensus core.Consensus) (*core.Blockchain, error)
- func CreateWallet() (client.Wallet, error)
- func DeleteWallet(key *core.KeyPair) error
- func DeleteWallets() error
- func GetAllAddresses() ([]core.Address, error)
- func GetBalance(address core.Address, db storage.Storage) (int, error)
- func Send(senderWallet client.Wallet, to core.Address, amount int, tip uint64, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidAddAmount = errors.New("ERROR: Amount is invalid (must be > 0)") ErrInvalidAddress = errors.New("ERROR: Address is invalid") ErrInvalidSenderAddress = errors.New("ERROR: Sender address is invalid") ErrInvalidRcverAddress = errors.New("ERROR: Receiver address is invalid") )
Functions ¶
func AddBalance ¶
add balance
func CreateBlockchain ¶
func CreateBlockchain(address core.Address, db storage.Storage, consensus core.Consensus) (*core.Blockchain, error)
create a blockchain
func DeleteWallet ¶
func DeleteWallets ¶
func DeleteWallets() error
func GetBalance ¶
get balance
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.