Skip to content

@liquality.evm.EIP1559FeeProvider

Krasimir Raykov edited this page Mar 30, 2022 · 4 revisions

Class: EIP1559FeeProvider

@liquality/evm.EIP1559FeeProvider

Hierarchy

  • Fee

    EIP1559FeeProvider

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EIP1559FeeProvider(provider)

Parameters

Name Type
provider StaticJsonRpcProvider

Overrides

Fee.constructor

Defined in

evm/lib/fee/EIP1559FeeProvider.ts:10

Properties

gasUnits

gasUnits: BigNumber

Inherited from

Fee.gasUnits

Defined in

client/dist/lib/Fee.d.ts:3


provider

provider: StaticJsonRpcProvider

Defined in

evm/lib/fee/EIP1559FeeProvider.ts:8

Methods

calculateMaxFeePerGas

calculateMaxFeePerGas(maxPriorityFeePerGas, potentialMaxFee): BigNumber

Parameters

Name Type
maxPriorityFeePerGas BigNumber
potentialMaxFee BigNumber

Returns

BigNumber

Defined in

evm/lib/fee/EIP1559FeeProvider.ts:28


getBaseFeeMultiplier

getBaseFeeMultiplier(baseFeeTrend): 1.6 | 1.4 | 1.2 | 1.1

Parameters

Name Type
baseFeeTrend number

Returns

1.6 | 1.4 | 1.2 | 1.1

Defined in

evm/lib/fee/EIP1559FeeProvider.ts:15


getFees

getFees(): Promise<FeeDetails>

Returns

Promise<FeeDetails>

Overrides

Fee.getFees

Defined in

evm/lib/fee/EIP1559FeeProvider.ts:32

Clone this wiki locally