Represents a Kaspa transaction

Constructors

  • Parameters

    • js_value: any

    Returns Transaction

Properties

gas: bigint
id: string

Returns the transaction ID

inputs: any
lock_time: bigint
outputs: any
payload: any
subnetworkId: any
version: number

Methods

  • Recompute and finalize the tx id based on updated tx fields

    Returns Hash

  • Returns void

  • Determines whether or not a transaction is a coinbase transaction. A coinbase transaction is a special transaction created by miners that distributes fees and block subsidy to the previous blocks' miners, and specifies the script_pub_key that will be used to pay the current miner in future blocks.

    Returns boolean

    • Return copy of self without private attributes.

    Returns Object

  • Return stringified version of self.

    Returns string

Generated using TypeDoc