Documentation ¶
Overview ¶
"token-cli" implements tokenvm client operation interface.
Index ¶
- Variables
- func CloseDatabase() error
- func DeleteChains() ([]ids.ID, error)
- func Execute() error
- func GetChain(chainID ids.ID) ([]string, error)
- func GetChains() (map[ids.ID][]string, error)
- func GetDefault(key string) ([]byte, error)
- func GetDefaultChain() (ids.ID, []string, error)
- func GetDefaultKey() (crypto.PrivateKey, error)
- func GetKey(publicKey crypto.PublicKey) (crypto.PrivateKey, error)
- func GetKeys() ([]crypto.PrivateKey, error)
- func StoreChain(chainID ids.ID, rpc string) error
- func StoreDefault(key string, value []byte) error
- func StoreKey(privateKey crypto.PrivateKey) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInputEmpty = errors.New("input is empty") ErrInvalidArgs = errors.New("invalid args") ErrMissingSubcommand = errors.New("must specify a subcommand") ErrIndexOutOfRange = errors.New("index out-of-range") ErrInsufficientBalance = errors.New("insufficient balance") ErrInvalidChoice = errors.New("invalid choice") ErrNotMultiple = errors.New("must be a multiple") ErrInsufficientSupply = errors.New("insufficient supply") ErrMustFill = errors.New("must fill") ErrDuplicate = errors.New("duplicate") ErrNoKeys = errors.New("no available keys") ErrNoChains = errors.New("no available chains") ErrTxFailed = errors.New("tx failed") )
Functions ¶
func CloseDatabase ¶
func CloseDatabase() error
func DeleteChains ¶
func GetDefault ¶
func GetDefaultKey ¶
func GetDefaultKey() (crypto.PrivateKey, error)
func GetKeys ¶
func GetKeys() ([]crypto.PrivateKey, error)
func StoreDefault ¶
func StoreKey ¶
func StoreKey(privateKey crypto.PrivateKey) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.