eth_maxpriorityfeepergas

Chiliz RPC

How to use it

// yarn add @tatumio/tatum

import { TatumSDK, Chiliz, Network } from '@tatumio/tatum'

const tatum = await TatumSDK.init<Chiliz>({ network: Network.CHILIZ })

const gasPrice = await tatum.rpc.maxPriorityFeePerGas()

await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs

Overview

The eth_maxPriorityFeePerGas RPC method returns the current maximum priority fee per gas (a.k.a. the miner/validator tip) suggested by the node for a transaction to be included promptly under EIP-1559 fee pricing. It lets wallets and dApps pick a tip that reflects current network conditions.

Use case

This method is particularly useful when the user wants to ensure that a transaction is processed quickly, even in a congested network where transaction fees may fluctuate rapidly. By setting a priority fee at or above the suggested value, clients can improve the chances of timely inclusion in a block.

Parameters

None.

Return Object

  • maxPriorityFeePerGas - The maximum priority fee per gas the user is willing to pay, in wei (hex-encoded).

JSON Examples

Request

{
  "jsonrpc": "2.0",
  "method": "eth_maxPriorityFeePerGas",
  "params": [],
  "id": 1
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x3b9aca00"
}

\