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() (common.SecretKey, error)
GetMnemonic() (string, error)
GetPublic() (common.PublicKey, error)
GetAccountRaw() ([20]byte, error)
GetBalance() (*Balance, error)
StartValidatorBulk(k []common.SecretKey) (bool, error)
ExitValidatorBulk(k []common.PublicKey) (bool, error)
StartValidator(validatorPrivBytes common.SecretKey) (bool, error)
ExitValidator(validatorPubKey common.PublicKey) (bool, error)
SendToAddress(to string, amount uint64) (*chainhash.Hash, error)
}
Wallet is the interface for wallet
Click to show internal directories.
Click to hide internal directories.