eth_maxPriorityFeePerGas - zkSync RPC Method
Get recommended priority fee on zkSync Era. Essential for EIP-1559 transactions for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.
Returns the current recommended priority fee per gas on zkSync Era for EIP-1559 transactions.
Use Cases
- EIP-1559 transactions - Set appropriate priority fees
- Transaction acceleration - Calculate tips for faster inclusion
- Gas optimization - Balance speed vs cost for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi
Request Parameters
This method accepts no parameters.
Response Body
Code Examples
curl -X POST https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}'import { JsonRpcProvider, formatUnits } from 'ethers';
const provider = new JsonRpcProvider('https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY');
const feeData = await provider.getFeeData();
console.log('Max Priority Fee:', formatUnits(feeData.maxPriorityFeePerGas, 'gwei'), 'Gwei');
console.log('Max Fee Per Gas:', formatUnits(feeData.maxFeePerGas, 'gwei'), 'Gwei');from web3 import Web3
w3 = Web3(Web3.HTTPProvider('https://api-zksync-era-mainnet-full.n.dwellir.com/YOUR_API_KEY'))
priority_fee = w3.eth.max_priority_fee
print(f'Max Priority Fee: {w3.from_wei(priority_fee, "gwei")} Gwei')Related Methods
eth_gasPrice- Get legacy gas priceeth_feeHistory- Get historical fee data
eth_gasPrice
Get current gas price on zkSync Era. Essential for transaction cost estimation for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.
eth_feeHistory
Get historical gas fee data on zkSync Era. Essential for fee prediction for RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.