Hierarchy

Methods

  • Return a ethereum address from the given bech32 encoded address

    Returns

    Throws

    if this address is not a valid account address

    Returns string

  • Return a subaccount address from the given bech32 encoded address

    Returns

    Throws

    if this address is not a valid account address

    Parameters

    • index: number = 0

      the subaccount index

    Returns string

  • Return a bech32-encoded account address

    Returns

    Throws

    if this address is not a valid account address

    Returns string

  • Convert an address instance to a bech32-encoded account address

    Returns

    Parameters

    • prefix: string = BECH32_ADDR_ACC_PREFIX

    Returns string

  • Return a bech32-encoded consensus address

    Returns

    Throws

    if this address is not a valid consensus address

    Returns string

  • Return a hex representation of address

    Returns

    Throws

    if this address is not a valid account address

    Returns string

  • Return a bech32-encoded validator address

    Returns

    Throws

    if this address is not a valid validator address

    Returns string

  • Create an address instance from a bech32-encoded address and a prefix

    Returns

    Throws

    if bech is not a valid bech32-encoded address

    Parameters

    • bech: string
    • prefix: string = BECH32_ADDR_ACC_PREFIX

    Returns Address

  • Create an address instance from an ethereum address

    Returns

    Throws

    if bech is not a valid bech32-encoded address

    Parameters

    • hex: string

      Ethereum address

    • prefix: string = BECH32_ADDR_ACC_PREFIX

    Returns Address

Generated using TypeDoc