> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_maxPriorityFeePerGas | Monad

> Monad API method that returns a suggestion for the max priority fee per gas (tip) to use in EIP-1559 transactions. Monad via Chainstack.

Monad API method that returns a suggestion for the max priority fee per gas (tip) to use in EIP-1559 transactions. This method helps you determine an appropriate tip to incentivize validators to include your transaction.

<Note>
  **Monad-specific behavior**: Currently returns a hardcoded suggested fee of 2 gwei. This is temporary and will be updated with dynamic fee estimation in the future.
</Note>

## Parameters

* `none`

## Response

* `result` — the suggested max priority fee per gas in wei, encoded as hexadecimal.

## `eth_maxPriorityFeePerGas` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { ethers } = require("ethers");

  const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function getMaxPriorityFee() {
    const maxPriorityFee = await provider.send("eth_maxPriorityFeePerGas", []);
    console.log(`Max priority fee: ${parseInt(maxPriorityFee, 16)} wei`);
    console.log(`Max priority fee: ${ethers.formatUnits(maxPriorityFee, "gwei")} gwei`);
  }

  getMaxPriorityFee();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"

  web3 = Web3(Web3.HTTPProvider(node_url))
  max_priority_fee = web3.eth.max_priority_fee
  print(f'Max priority fee: {max_priority_fee} wei')
  print(f'Max priority fee: {web3.from_wei(max_priority_fee, "gwei")} gwei')
  ```
</CodeGroup>

## Use case

A practical use case for `eth_maxPriorityFeePerGas` is dynamically setting the priority fee for EIP-1559 transactions to ensure competitive inclusion times while avoiding overpaying during low-congestion periods.


## OpenAPI

````yaml openapi/monad_node_api/gas_data/eth_maxPriorityFeePerGas.json POST /
openapi: 3.0.0
info:
  title: Monad Node API
  version: 1.0.0
  description: This is an API for interacting with a Monad node.
servers:
  - url: https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800
security: []
paths:
  /:
    post:
      tags:
        - Gas data
      summary: eth_maxPriorityFeePerGas
      operationId: eth_maxPriorityFeePerGas
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_maxPriorityFeePerGas
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: The max priority fee per gas in wei.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````