Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet interface {
NewWallet(name string, mnemonic string, password string) error
OpenWallet(name string, password string) error
CloseWallet() error
HasWallet(name string) bool
GetAvailableWallets() (map[string]string, error)
GetAccount() (string, error)
GetSecret() (*bls.SecretKey, error)
GetMnemonic() (string, error)
GetPublic() (*bls.PublicKey, error)
GetAccountRaw() ([20]byte, error)
GetBalance() (*Balance, error)
StartValidatorBulk(k []*bls.SecretKey) (bool, error)
ExitValidatorBulk(k []*bls.PublicKey) (bool, error)
StartValidator(validatorPrivBytes *bls.SecretKey) (bool, error)
ExitValidator(validatorPubKey *bls.PublicKey) (bool, error)
SendToAddress(to string, amount uint64) (*chainhash.Hash, error)
}
Wallet is the interface for wallet
func NewWallet ¶
func NewWallet(ch chain.Blockchain, hostnode hostnode.HostNode, mempool mempool.CoinsMempool, actionMempool mempool.ActionMempool) (Wallet, error)
NewWallet creates a new wallet.
Click to show internal directories.
Click to hide internal directories.