A FeeData wraps all the fee-related values associated with the network.

Constructors

new FeeData()

new FeeData(gasPrice?): FeeData

Creates a new FeeData for gasPrice.

Parameters

ParameterTypeDescription
gasPrice?null | bigintThe gas price.

Returns

FeeData

Source

providers/provider.ts:116

Properties

PropertyModifierTypeDescription
gasPricereadonlynull | bigintThe gas price

Methods

toJSON()

toJSON(): any

Returns a JSON-friendly value.

Returns

any

The JSON-friendly value.

Source

providers/provider.ts:128