TriportRPC

eth_maxPriorityFeePerGas

BNB Smart Chain / https://triport.io/rpc/bsc

Minimum tier: Free

BNB Smart Chain method guide

Last updated:

eth_maxPriorityFeePerGas returns the selected node's priority-fee estimate as an EVM hex quantity denominated in wei per gas.

Use it as one input when constructing fee fields for a transaction. The value is an estimate from the selected upstream node, not a guaranteed inclusion price.

This differs from eth_gasPrice, which returns a current total gas-price estimate, and eth_feeHistory, which exposes a historical window and reward percentiles.

Parameters

This method takes no parameters.

Returns

eth_maxPriorityFeePerGas return value
FieldType
maxPriorityFeePerGasQuantity

Examples

curl https://triport.io/rpc/bsc \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_maxPriorityFeePerGas","params":[]}'
const res = await fetch("https://triport.io/rpc/bsc", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_maxPriorityFeePerGas",
  "params": []
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/bsc",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"eth_maxPriorityFeePerGas","params":[]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: BNB Smart Chain.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_maxPriorityFeePerGas do?
Return a priority-fee estimate.
How many credits does eth_maxPriorityFeePerGas cost?
eth_maxPriorityFeePerGas costs 1 credit(s) per call on Triport by default.
Is eth_maxPriorityFeePerGas available over WebSocket?
eth_maxPriorityFeePerGas is an HTTP JSON-RPC method.