eth_maxPriorityFeePerGas
Returns the priority fee needed for inclusion in the next block on the Bittensor network. This method is essential for EIP-1559 transactions, helping you determine the appropriate tip to incentivize miners.
Parameters​
None required - this method takes no parameters.
Returns​
QUANTITY
- The hex-encoded priority fee per gas in wei needed for inclusion in the next block.
Implementation Example​
- cURL
- JavaScript
curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_maxPriorityFeePerGas",
"params": [],
"id": 1
}'
const response = await fetch('https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_maxPriorityFeePerGas',
params: [],
id: 1
})
});
const data = await response.json();
console.log(data.result);
Response Example​
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x77359400"
}
The result 0x77359400
represents 2,000,000,000 wei (2 gwei) as the suggested priority fee.
Need help? Contact our support team or check the Bittensor documentation.