Skip to main content

GasInfo

Gas-related information for a transaction including limits, prices, and actual usage. Supports both legacy (pre-EIP-1559) and EIP-1559 transaction types.

Schema Definition

type GasInfo {
limit: Gas!
price: Wei!
used: Gas
feeCap: Wei
tipCap: Wei
}

Fields

FieldTypeDescription
limit
Gas! non-null scalar
Maximum gas units the sender authorized the transaction to consume.
price
Wei! non-null scalar
Gas price in wei. For EIP-1559 transactions, this is the effective gas price paid.
used
Gas scalar
Actual gas units consumed by the transaction execution, or null if transaction is pending.
feeCap
Wei scalar
Maximum total fee per gas the sender was willing to pay (EIP-1559 transactions only).
tipCap
Wei scalar
Maximum priority fee (tip) per gas for the validator (EIP-1559 transactions only).

Member Of

BlockTransaction object ● Transaction object