Class TransactionHash

Represents a transaction hash, which can either be associated with a Deploy or a TransactionV1. This class helps in wrapping transaction hashes from different transaction types.

Hierarchy

  • TransactionHash

Constructors

Properties

Methods

Constructors

  • Constructs a new TransactionHash instance, which can hold either a Deploy hash or a TransactionV1 hash.

    Parameters

    • Optional deploy: Hash

      The hash of the deploy transaction, if applicable.

    • Optional transactionV1: Hash

      The hash of the version 1 transaction, if applicable.

    Returns TransactionHash

Properties

deploy?: Hash

The hash associated with the deploy transaction, if applicable. This will contain the hash of the Deploy transaction.

transactionV1?: Hash

The hash associated with the version 1 transaction, if applicable. This will contain the hash of the TransactionV1.

Methods

  • Converts the TransactionHash to a hexadecimal string representation.

    Returns

    The hexadecimal string of the deploy or transactionV1, or an empty string if neither is available.

    Returns string

Generated using TypeDoc