• Encode an address from a string or Buffer.

    Parameters

    • value: string | Buffer

      The input string or Buffer to be encoded.

    • prefix: string = 'thor'

      The prefix of the address. (optional)

    • type: BufferEncoding = 'hex'

      The buffer encoding type. It is used when a string is provided. (optional)

    Returns string

    The address generated from the input string or Buffer.

Generated using TypeDoc