ethereumjs-monorepo

@ethereumjs/tx


@ethereumjs/tx / createLegacyTx

Function: createLegacyTx()

createLegacyTx(txData, opts): LegacyTx

Defined in: legacy/constructors.ts:17

Instantiate a transaction from a data dictionary.

Format: { nonce, gasPrice, gasLimit, to, value, data, v, r, s }

Notes:

Parameters

txData

LegacyTxData

opts

TxOptions = {}

Returns

LegacyTx