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
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": []
}'

Response Example

Use Cases

  • Set EIP-1559 transaction fees

  • Optimize gas pricing

  • Priority transaction submission

SDK Integration

Last updated

Was this helpful?