Providers
FeeData
A FeeData wraps all the fee-related values associated with the network.
Constructors
new FeeData()
Creates a new FeeData for gasPrice
, gasPrice
and minerTip
.
Parameters
Parameter | Type | Description |
---|---|---|
gasPrice ? | null | bigint | The gas price. |
minerTip ? | null | bigint | The maximum priority fee per gas. |
Returns
Source
Properties
Property | Modifier | Type | Description |
---|---|---|---|
gasPrice | readonly | null | bigint | The gas price for legacy networks. |
minerTip | readonly | null | bigint | The additional amount to pay per gas to encourage a validator to include the transaction. The purpose of this is to compensate the validator for the adjusted risk for including a given transaction. This will be null on legacy networks (i.e. pre-EIP-1559) |
Methods
toJSON()
Returns a JSON-friendly value.
Returns
any
The JSON-friendly value.
Source
Was this page helpful?