Documentation ¶
Index ¶
- type Account
- func (a *Account) Address() string
- func (a *Account) Balance() (balance, pending *big.Int, err error)
- func (a *Account) ChangeRep(representative string) (hash rpc.BlockHash, err error)
- func (a *Account) Index() uint32
- func (a *Account) ReceivePending(link rpc.BlockHash) (hash rpc.BlockHash, err error)
- func (a *Account) ReceivePendings() (err error)
- func (a *Account) Send(account string, amount *big.Int) (hash rpc.BlockHash, err error)
- func (a *Account) SendBlock(account string, amount *big.Int) (block *rpc.Block, err error)
- func (a *Account) SetRep(representative string) (err error)
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account represents a wallet account.
func (*Account) ReceivePending ¶
ReceivePending pockets the specified link block.
func (*Account) ReceivePendings ¶
ReceivePendings pockets all pending amounts.
type Wallet ¶
Wallet represents a wallet.
func NewBip39Wallet ¶
NewBip39Wallet creates a new BIP39 wallet.
func NewLedgerWallet ¶
NewLedgerWallet creates a new Ledger wallet.
func (*Wallet) GetAccount ¶
GetAccount gets the account with address or nil if not found.
func (*Wallet) GetAccounts ¶
GetAccounts gets all the accounts in the wallet.
func (*Wallet) NewAccount ¶
NewAccount creates a new account.
func (*Wallet) ReceivePendings ¶
ReceivePendings pockets all pending amounts.
func (*Wallet) ScanForAccounts ¶
ScanForAccounts scans for accounts.
Directories ¶
Path | Synopsis |
---|---|
Package ed25519 implements the Ed25519 signature algorithm.
|
Package ed25519 implements the Ed25519 signature algorithm. |
Click to show internal directories.
Click to hide internal directories.