Documentation ¶
Index ¶
- Variables
- func AddressFromAccountName(name string) (string, error)
- func DefaultLocation() string
- func DescribeLocalAccounts()
- func DoesNamedAccountExist(name string) bool
- func FromAccountName(name string) *keystore.KeyStore
- func FromAddress(addr string) *keystore.KeyStore
- func LocalAccounts() []string
- func SetDefaultLocation(directory string)
- func UnlockedKeystore(from, passphrase string) (*keystore.KeyStore, *keystore.Account, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoUnlockBadPassphrase for bad password ErrNoUnlockBadPassphrase = fmt.Errorf("could not unlock account with passphrase, perhaps need different phrase") )
Functions ¶
func AddressFromAccountName ¶
AddressFromAccountName Returns address for account name if exists
func DescribeLocalAccounts ¶
func DescribeLocalAccounts()
DescribeLocalAccounts will display all the account alias name and their corresponding one address
func DoesNamedAccountExist ¶
DoesNamedAccountExist return true if the given string name is an alias account already define, and return false otherwise
func FromAccountName ¶
FromAccountName get account from name
func FromAddress ¶
FromAddress will return nil if the Base58 string is not found in the imported accounts
func LocalAccounts ¶
func LocalAccounts() []string
LocalAccounts returns a slice of local account alias names
func SetDefaultLocation ¶
func SetDefaultLocation(directory string)
SetDefaultLocation set deafault location
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.