@ethereumjs/tx / createTx
createTx<
T
>(txData
,txOptions
):Transaction
[T
]
Defined in: transactionFactory.ts:30
Create a transaction from a txData
object
T
extends TransactionType
The transaction data. The type
field will determine which transaction type is returned (if undefined, creates a legacy transaction)
TxOptions
= {}
Options to pass on to the constructor of the transaction
Transaction
[T
]