estimateMaxPriorityFeePerGas
Get the current priority fee per gas (in drip). (Note: Currently, this method directly calls the cfx_maxPriorityFeePerGas RPC.)
Usage
import { publicClient } from "./client";
const maxPriorityFeePerGas = await publicClient.estimateMaxPriorityFeePerGas();import { http, createPublicClient } from 'cive'
import { mainnet } from 'cive/chains'
export const publicClient = createPublicClient({
chain: mainnet,
transport: http(),
})Returns
bigint