A representation of an onchain Transaction.

Constructors

Properties

raw?: Transaction

Methods

  • Returns the Block Hash where the Transaction is recorded.

    Returns undefined | string

    The Block Hash

  • Returns the Block Height where the Transaction is recorded.

    Returns undefined | string

    The Block Height

  • Returns the Signed Payload of the Transaction.

    Returns undefined | string

    The Signed Payload

  • Returns the Signed Payload of the Transaction.

    Returns undefined | string

    The Signed Payload

  • Returns the Transaction Hash of the Transaction.

    Returns undefined | string

    The Transaction Hash

  • Returns the link to the Transaction on the blockchain explorer.

    Returns string

    The link to the Transaction on the blockchain explorer

  • Returns the Unsigned Payload of the Transaction.

    Returns string

    The Unsigned Payload

  • Returns whether the transaction has been signed.

    Returns boolean

    if the transaction has been signed.

  • Returns whether the Transaction is in a terminal State.

    Returns boolean

    Whether the Transaction is in a terminal State

  • Returns the underlying raw transaction.

    Returns Transaction

    The ethers.js Transaction object

    Throws

    If the Unsigned Payload is invalid.

  • Signs the Transaction with the provided key and returns the hex signing payload.

    Parameters

    • key: Wallet

      The key to sign the transaction with

    Returns Promise<string>

    The hex-encoded signed payload

  • Returns the To Address ID for the Transaction if it's available.

    Returns undefined | string

    The To Address ID

  • Returns a string representation of the Transaction.

    Returns string

    A string representation of the Transaction.