Current gas market for a chain
gas_priceBid-ready EIP-1559 fees (slow/standard/fast maxFeePerGas + maxPriorityFeePerGas, tx-ready wei) for one chain, read live from public RPCs. Pass tx_type to get the USD cost of that specific transaction instead, including the OP-stack L1 data fee naive estimators miss. Paid: call without x_payment to receive this call's exact terms (amount, asset, network), sign them, then call again with x_payment. The free pricing tool lists every price at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gas | No | Optional gas limit override when tx_type is set. | |
| chain | No | Which chain's gas market to read. | base |
| speed | No | Which fee tier to price the estimate at. | standard |
| tx_type | No | Optional: cost a specific transaction shape rather than returning raw fees. | |
| x_payment | No | Optional signed x402 payment payload (base64, what the X-PAYMENT header carries). Omit to receive the exact payment terms; sign them (e.g. @x402/fetch) and call again with this argument to settle and get the data. |