account

package
v0.5.0-rc5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountCmd = &cobra.Command{
	Use:   "account",
	Short: "Deal with accounts of IoTeX blockchain",
	Args:  cobra.MinimumNArgs(1),
}

AccountCmd represents the account command

View Source
var (
	ErrNoNameFound = errors.New("no name is found")
)

Errors

Functions

func Address

func Address(in string) (string, error)

Address returns the address corresponding to name, parameter in can be name or IoTeX address

func GetAccountMeta

func GetAccountMeta(addr string) (*iotextypes.AccountMeta, error)

GetAccountMeta gets account metadata

func GetNameMap

func GetNameMap() (map[string]string, error)

GetNameMap gets the map from address to names of both AccountList and NameList

func KsAccountToPrivateKey

func KsAccountToPrivateKey(signer, password string) (keypair.PrivateKey, error)

KsAccountToPrivateKey generates our PrivateKey interface from Keystore account

func Name

func Name(address string) (string, error)

Name returns the name corresponding to address

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL