shallowCopy
scrypt-ts-opcat / Transaction / shallowCopy
Function: shallowCopy()
shallowCopy(
transaction
):Transaction
Defined in: node_modules/@opcat-labs/opcat/types/transaction/transaction.d.cts:704
Create a 'shallow' copy of the transaction, by serializing and deserializing it dropping any additional information that inputs and outputs may have hold
Parameters
transaction
The transaction to copy.
Returns
A new Transaction instance with the same data.