ethereumjs-monorepo

@ethereumjs/vm


@ethereumjs/vm / estimateTxGasDimensions

Function: estimateTxGasDimensions()

estimateTxGasDimensions(vm, tx, opts?): Promise<TxGasDimensionsEstimate>

Defined in: vm/src/estimateTxGasDimensions.ts:64

Estimate regular / floor / first-touch state gas for tx against vm state.

Parameters

vm

VM

tx

TypedTransaction

opts?

sender?

Address

Returns

Promise<TxGasDimensionsEstimate>

Remarks

Experimental (Amsterdam): may change on patch releases.