Methods
getEthereumAddress
- getEthereumAddress(): string
-
Returns string
getSubaccountId
- getSubaccountId(index?: number): string
-
Returns string
toAccountAddress
- toAccountAddress(): string
-
Returns string
toBech32
- toBech32(prefix?: string): string
-
Parameters
-
prefix: string = BECH32_ADDR_ACC_PREFIX
Returns string
toConsensusAddress
- toConsensusAddress(): string
-
Returns string
toHex
- toHex(): string
-
Returns string
toValidatorAddress
- toValidatorAddress(): string
-
Returns string
Static
fromBech32
- fromBech32(bech: string, prefix?: string): Address
-
Parameters
-
bech: string
-
prefix: string = BECH32_ADDR_ACC_PREFIX
Static
fromHex
- fromHex(hex: string, prefix?: string): Address
-
Parameters
-
hex: string
-
prefix: string = BECH32_ADDR_ACC_PREFIX
Return a ethereum address from the given bech32 encoded address
Returns
Throws
if this address is not a valid account address