Marketplace has launched, further enabling blockchain developers! Learn more

Contents

eth_max_priority_fee_per_gas RPC method

The eth_max_priority_fee_per_gas EVM method is only supported on the Avalanche C-Chain.

Parameters:

  1. None

Returns:

  1. Result - String - The hex value of the priority fee needed to be included in a block.

Code Examples:

To use the eth_max_priority_fee_per_gas EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

const ethers = require("ethers");

(async () => {
  const provider = new ethers.providers.JsonRpcProvider(
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/C/rpc"
  );
  const params = [];
  const result = await provider.send("eth_maxPriorityFeePerGas", params);
  console.log(result);
})();
Ready to get started? Create a free account