Gas Statistics
Subscribe
ws.send(JSON.stringify({
action: 'subscribe',
topic: 'gasStats'
}));Message Schema
{
"type": "gasStats",
"data": {
"shard": 0,
"gasPrice": {
"min": 1000000000,
"max": 1500000000,
"avg": 1200000000,
"bucketAvg": 1210000000,
"percentiles": {
"p50": 1150000000,
"p75": 1350000000,
"p90": 1450000000
}
},
"ppu": {
"min": 10,
"max": 15,
"avg": 12,
"bucketAvg": 12.1
}
}
}Field Descriptions
Field
Type
Description
Sliding Window and Bucket Algorithm
Choosing a Gas Price
Goal
Recommended value
PPU β Price Per Unit
Example: Dynamic Gas Price Selection
Unsubscribe
Use Cases
Related Pages
Last updated
Was this helpful?