Readonly
idReturns the transaction ID
Returns a list of unique addresses used by transaction inputs. This method can be used to determine addresses used by transaction inputs in order to select private keys needed for transaction signing.
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.
Serializes the transaction to a JSON string. The schema of the JSON is defined by ISerializableTransaction.
Serializes the transaction to a pure JavaScript Object. The schema of the JavaScript object is defined by ISerializableTransaction.
Static
deserializeDeserialize the Transaction Object from a JSON string.
Static
deserializeDeserialize the Transaction Object from a pure JavaScript Object.
Static
deserializeDeserialize the Transaction Object from a "Safe" JSON schema where all bigint
values are represented as string
.
Generated using TypeDoc
Represents a Kaspa transaction. This is an artificial construct that includes additional transaction-related data such as additional data from UTXOs used by transaction inputs.