Documentation
¶
Overview ¶
Package blockchain contains code for interacting with the decentr blockchain.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAddress = errors.New("invalid address")
ErrInvalidAddress is returned when address is invalid. It is unexpected situation.
Functions ¶
func New ¶ added in v1.1.4
func New(b broadcaster.Broadcaster) *blockchain
New returns new instance of Blockchain.
Types ¶
type Blockchain ¶
type Blockchain interface {
DistributeRewards(rewards []Reward) (tx string, err error)
SendStakes(stakes []Stake, memo string) error
}
Blockchain is interface for interacting with the blockchain.
Click to show internal directories.
Click to hide internal directories.