eth_maxPriorityFeePerGas - Somnia
Example code for the eth_maxPriorityFeePerGas JSON-RPC method. Complete guide on how to use eth_maxPriorityFeePerGas JSON-RPC in GetBlock Web3 documentation.
This method returns the current max priority fee per gas on the Somnia network (EIP-1559). This helps set appropriate priority fees for faster transaction inclusion.
Parameters
None
Returns
Field
Type
Description
result
string
Max priority fee in wei (hex)
Request Example
curl -X POST https://go.getblock.io/<ACCESS-TOKEN>/ \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "getblock.io",
"method": "eth_maxPriorityFeePerGas",
"params": []
}'const axios = require('axios');
const payload = {
jsonrpc: '2.0',
id: 'getblock.io',
method: 'eth_maxPriorityFeePerGas',
params: []
};
axios.post('https://go.getblock.io/<ACCESS-TOKEN>/', payload)
.then(response => console.log(response.data));import requests
payload = {
"jsonrpc": "2.0",
"id": "getblock.io",
"method": "eth_maxPriorityFeePerGas",
"params": []
}
response = requests.post("https://go.getblock.io/<ACCESS-TOKEN>/", json=payload)
print(response.json())Response Example
Use Cases
Set EIP-1559 transaction fees
Optimize gas pricing
Priority transaction submission
SDK Integration
Last updated
Was this helpful?