ethereumjs-monorepo

@ethereumjs/tx / TxOptions

Interface: TxOptions

The options for initializing a Transaction.

Table of contents

Properties

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

tx/src/types.ts:78


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

tx/src/types.ts:60


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

tx/src/types.ts:72