Hierarchy

Methods

  • 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

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

    Returns

    Parameters

    • prefix: string = BECH32_ADDR_ACC_PREFIX

    Returns string

  • Return a hex representation of address

    Returns

    Throws

    if this address is not a valid account 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