iotex-core: Index | Files

package alias

import ""


Package Files

alias.go aliasexport.go aliasimport.go aliaslist.go aliasremove.go aliasset.go


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

AliasCmd represents the alias command

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


func Alias Uses

func Alias(address string) (string, error)

Alias returns the alias corresponding to address

func EtherAddress Uses

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

EtherAddress returns the address in ether format

func GetAliasMap Uses

func GetAliasMap() map[string]string

GetAliasMap gets the map from address to alias

func IOAddress Uses

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

IOAddress returns the address in IoTeX address format

Package alias imports 14 packages (graph) and is imported by 4 packages. Updated 2019-08-21. Refresh now. Tools for package owners.