TxOptions
The options for initializing a Transaction.
Properties
allowUnlimitedInitCodeSize?
optional
allowUnlimitedInitCodeSize:boolean
Allows unlimited contract code-size init while debugging. This (partially) disables EIP-3860. Gas cost for initcode size analysis will still be charged. Use with caution.
Defined in
node_modules/.pnpm/@ethereumjs+tx@5.4.0/node_modules/@ethereumjs/tx/dist/esm/types.d.ts:71
common?
optional
common:Common
A Common object defining the chain and hardfork for the transaction.
Object will be internally copied so that tx behavior don’t incidentally change on future HF changes.
Default: Common object set to mainnet
and the default hardfork as defined in the Common class.
Current default hardfork: istanbul
Defined in
node_modules/.pnpm/@ethereumjs+tx@5.4.0/node_modules/@ethereumjs/tx/dist/esm/types.d.ts:54
freeze?
optional
freeze:boolean
A transaction object by default gets frozen along initialization. This gives you
strong additional security guarantees on the consistency of the tx parameters.
It also enables tx hash caching when the hash()
method is called multiple times.
If you need to deactivate the tx freeze - e.g. because you want to subclass tx and add additional properties - it is strongly encouraged that you do the freeze yourself within your code instead.
Default: true
Defined in
node_modules/.pnpm/@ethereumjs+tx@5.4.0/node_modules/@ethereumjs/tx/dist/esm/types.d.ts:66