Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new Address(bech32Address: string): Address

Properties

bech32Address: string

Accessors

  • get address(): string

Methods

  • getEthereumAddress(): string
  • getSubaccountId(index?: number): string
  • Return a subaccount address from the given bech32 encoded address

    throws

    {Error} if this address is not a valid account address

    Parameters

    • index: number = 0

      the subaccount index

    Returns string

  • toAccountAddress(): string
  • toBech32(prefix?: string): string
  • toConsensusAddress(): string
  • toHex(): string
  • toValidatorAddress(): string
  • fromBech32(bech: string, prefix?: string): Address
  • fromHex(hex: string, prefix?: string): Address

Generated using TypeDoc