copyTransaction
Copies a Safe transaction object.
Usage
_17import {_17 MetaTransactionData,_17 OperationType_17} from '@safe-global/types-kit'_17import { protocolKit } from './setup.ts'_17_17const transactions: MetaTransactionData[] = [{_17 to: '0x...',_17 value: '123',_17 data: '0x',_17 operation: OperationType.Call // Optional_17}]_17const safeTransaction1 = await protocolKit.createTransaction({_17 transactions_17})_17_17const safeTransaction2 = await copyTransaction(safeTransaction1)
Parameters
safeTransaction
The Safe transaction object to copy.
_10const safeTransaction2 = await copyTransaction(_10 safeTransaction_10)
Returns
Promise<SafeTransaction>
The new object with a copy of the Safe transaction.