Docs

eth_maxPriorityFeePerGas

Retrieves the maximum priority fee per gas from the Ethereum network.

Example

import { getRpcClient, eth_maxPriorityFeePerGas } from "thirdweb/rpc";
const rpcRequest = getRpcClient({ client, chain });
const maxPriorityFeePerGas =
await eth_maxPriorityFeePerGas(rpcRequest);

Parameters

Returns

A promise that resolves to a bigint representing the maximum priority fee per gas.