Class RewardAddress

Represents a reward address in the Cardano blockchain.

A reward address is a type of Shelley-era address that includes only a stake credential. Unlike base addresses, reward addresses cannot be used for spending and are specifically designed to receive staking rewards. They are typically derived from the stake credential of a base address.

Constructors

Properties

ptr: number

The memory address of the RewardAddress WASM object.

Methods

  • Gets the reference count of the reward address.

    Returns number

    The current reference count.

  • Gets the Bech32 string representation of the reward address.

    Returns string

    A Bech32 string containing the address.

    If the operation fails.

  • Gets the raw bytes of the reward address.

    Returns Uint8Array

    A byte array containing the address data.

    If the operation fails.

  • Creates a reward address from a Bech32 string.

    Parameters

    • data: string

      The Bech32 string containing the address.

    Returns RewardAddress

    A new RewardAddress instance.

    If the operation fails.

  • Creates a reward address from raw bytes.

    Parameters

    • data: Uint8Array

      The byte array containing the address data.

    Returns RewardAddress

    A new RewardAddress instance.

    If the operation fails.