eth_suggestPriceOptions - AVAX
Example code for the eth_suggestPriceOptions JSON-RPC method. Complete guide on how to use eth_suggestPriceOptions JSON-RPC in GetBlock Web3 documentation.
Parameters
Request Example
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/ext/bc/C/rpc' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_suggestPriceOptions",
"params": [],
"id": "getblock.io"
}'import axios from 'axios';
const data = JSON.stringify({
"jsonrpc": "2.0",
"method": "eth_suggestPriceOptions",
"params": [],
"id": "getblock.io"
});
const config = {
method: 'post',
url: 'https://go.getblock.io/<ACCESS-TOKEN>/ext/bc/C/rpc',
headers: {
'Content-Type': 'application/json'
},
data: data
};
axios(config)
.then(response => console.log(JSON.stringify(response.data, null, 2)))
.catch(error => console.log(error));Response Example
{
"jsonrpc": "2.0",
"id": "getblock.io",
"result": {
"slow": {
"maxFeePerGas": "0x5d21dba00",
"maxPriorityFeePerGas": "0x3b9aca00"
},
"normal": {
"maxFeePerGas": "0x77359400",
"maxPriorityFeePerGas": "0x59682f00"
},
"fast": {
"maxFeePerGas": "0x9502f9000",
"maxPriorityFeePerGas": "0x77359400"
}
}
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
Status Code
Error Message
Cause
SDK Integration
Last updated
Was this helpful?