alias

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasCmd = &cobra.Command{
	Use:   "alias",
	Short: "Manage aliases of IoTeX addresses",
}

AliasCmd represents the alias command

View Source
var (
	ErrNoAliasFound = errors.New("no alias is found")
)

Errors

Functions

func Alias

func Alias(address string) (string, error)

Alias returns the alias corresponding to address

func EtherAddress added in v0.8.0

func EtherAddress(in string) (common.Address, error)

EtherAddress returns the address in ether format

func GetAliasMap

func GetAliasMap() map[string]string

GetAliasMap gets the map from address to alias

func IOAddress added in v0.8.0

func IOAddress(in string) (address.Address, error)

IOAddress returns the address in iotex address format

Types

This section is empty.

Jump to

Keyboard shortcuts

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