Class ByronAddress

Represents a Byron-era address in the Cardano blockchain.

Byron addresses were used during the Byron era of the Cardano blockchain and include additional attributes such as derivation paths and network magic identifiers.

Properties

ptr: number

The memory address of the ByronAddress WASM object.

Methods

  • Gets the attributes of this Byron address.

    Returns ByronAddressAttributes

    The address attributes.

    If the operation fails.

  • Gets the raw bytes of this Byron address.

    Returns Uint8Array

    The address as a byte array.

    If the operation fails.

  • Gets the root hash of this Byron address.

    Returns string

    The root hash as a byte array.

    If the operation fails.

  • Gets the reference count of this Byron address.

    Returns number

    The current reference count.

  • Gets the Base58 string representation of this Byron address.

    Returns string

    The address as a Base58 string.

    If the operation fails.

  • Creates a Byron address from a Base58 string.

    Parameters

    • base58: string

      The Base58 string representation of the address.

    Returns ByronAddress

    A new ByronAddress instance.

    If the operation fails.

  • Creates a Byron address from raw bytes.

    Parameters

    • bytes: Uint8Array

      The raw bytes of the address.

    Returns ByronAddress

    A new ByronAddress instance.

    If the operation fails.

  • Creates a Byron address from credentials and attributes.

    Parameters

    • root: string

      The root hash of the address as a hex string.

    • attributes: ByronAddressAttributes

      Optional attributes for the address.

    • type: ByronAddressType

      The type of Byron address.

    Returns ByronAddress

    A new ByronAddress instance.

    If the operation fails.