Parameters
Number of blocks to return (hex, max 1024)
Newest block (hex), or latest, pending
Array of percentiles for priority fee sampling
Returns
Fee history object
Oldest block in range (hex)
Array of base fees per gas
Array of priority fee percentiles
Example
curl -X POST "https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET" \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "eth_feeHistory", "params": [4, "latest", [25, 75]], "id": 1}'
const response = await fetch('https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [
4,
"latest",
[
25,
75
]
],
"id": 1
})
});
const { result } = await response.json();
console.log(result);
import requests
response = requests.post(
'https://edge.goldsky.com/standard/evm/1?secret=YOUR_SECRET',
json={
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [
4,
"latest",
[
25,
75
]
],
"id": 1
}
)
print(response.json()['result'])