⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

eth_maxPriorityFeePerGas

Overview

Returns a node-suggested max priority fee per gas for EIP-1559 style transactions.

Movement-Specific Considerations

  • Use with eth_feeHistory to derive robust fee estimates.

Parameters

NameTypeRequiredDescription
(none)No parameters.

Returns

Hex string tip (wei).

Code Examples

cURL

curl -X POST https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_maxPriorityFeePerGas","params":[],"id":1}'

Ethers.js v6

import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1');
const tip = await provider.send('eth_maxPriorityFeePerGas', []);
console.log(tip);

Web3.js

import Web3 from 'web3';
const web3 = new Web3('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1');
const tip = await web3.eth.getMaxPriorityFeePerGas();
console.log(tip);

viem

import { createPublicClient, http } from 'viem';

const movement = {
id: 3073,
name: 'Movement',
nativeCurrency: { name: 'MOVE', symbol: 'MOVE', decimals: 18 },
rpcUrls: { default: { http: ['https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1'] } },
} as const;

const client = createPublicClient({ chain: movement, transport: http('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1') });
const tip = await client.request({ method: 'eth_maxPriorityFeePerGas', params: [] });
console.log(tip);