Skip to content

estimateMaxPriorityFeePerGas

Get the current priority fee per gas (in drip). (Note: Currently, this method directly calls the cfx_maxPriorityFeePerGas RPC.)

Usage

example.ts
import { publicClient } from "./client";

const maxPriorityFeePerGas = await publicClient.estimateMaxPriorityFeePerGas();

Returns

bigint

JSON-RPC Method

cfx_maxPriorityFeePerGas