Class BaseAddress

Represents a base address in the Cardano blockchain.

A base address is a type of Shelley-era address that includes both payment and stake credentials. This allows for both spending funds and receiving staking rewards from the same address.

Properties

ptr: number

The memory address of the BaseAddress WASM object.

Methods

  • Gets the reference count of the base address.

    Returns number

    The current reference count.

  • Gets the Bech32 string representation of the base address.

    Returns string

    A Bech32 string containing the address.

    If the operation fails.

  • Gets the raw bytes of the base address.

    Returns Uint8Array

    A byte array containing the address data.

    If the operation fails.

  • Creates a base address from a Bech32 string.

    Parameters

    • data: string

      The Bech32 string containing the address.

    Returns BaseAddress

    A new BaseAddress instance.

    If the operation fails.

  • Creates a base address from raw bytes.

    Parameters

    • data: Uint8Array

      The byte array containing the address data.

    Returns BaseAddress

    A new BaseAddress instance.

    If the operation fails.