TriportRPC

Gas

Last updated:

Applies to: EVM chains

In more detail

Every transaction sets a gas limit, the most gas it may consume; execution that runs out of gas reverts, and the fee for the gas used is still paid. Under EIP-1559 the price per unit is a protocol-set base fee, which is burned, plus a priority fee (tip) chosen by the sender, capped by maxFeePerGas.

eth_estimateGas simulates a transaction to suggest a gas limit, and eth_feeHistory and eth_maxPriorityFeePerGas help choose fees.

See also

Sources

All terms in the RPC and blockchain glossary