Documentation ¶
Index ¶
- type Wallet
- func (w *Wallet) Address() types.Account
- func (w *Wallet) Change(representative types.Account) (*blocks.ChangeBlock, error)
- func (w *Wallet) GeneratePoWAsync() error
- func (w *Wallet) GeneratePowSync() error
- func (w *Wallet) GetBalance() uint128.Uint128
- func (w *Wallet) HasPoW() bool
- func (w *Wallet) Open(source types.BlockHash, representative types.Account) (*blocks.OpenBlock, error)
- func (w *Wallet) Receive(source types.BlockHash) (*blocks.ReceiveBlock, error)
- func (w *Wallet) Send(destination types.Account, amount uint128.Uint128) (*blocks.SendBlock, error)
- func (w *Wallet) WaitPoW()
- func (w *Wallet) WaitingForPoW() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct { PublicKey ed25519.PublicKey Head blocks.Block Work *types.Work PoWchan chan types.Work // contains filtered or unexported fields }
func (*Wallet) GeneratePoWAsync ¶
Triggers a goroutine to generate the next proof of work.
func (*Wallet) GeneratePowSync ¶
func (*Wallet) GetBalance ¶
func (*Wallet) WaitingForPoW ¶
Click to show internal directories.
Click to hide internal directories.