Skip to main content

shallowCopy

scrypt-ts-opcat v1.0.1


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

Transaction

The transaction to copy.

Returns

Transaction

A new Transaction instance with the same data.