Gas Statistics
Subscribe
ws.send(JSON.stringify({
action: 'subscribe',
topic: 'gasStats'
}));Response
{
"type": "gasStats",
"data": {
"shards": [
{
"shardId": 0,
"gasPrice": {
"min": 1000000000,
"max": 1500000000,
"avg": 1200000000
},
"ppu": {
"min": 1000000000,
"max": 2000000000,
"avg": 1400000000
},
"txCount": 145,
"lastUpdated": 1704067200000
},
{
"shardId": 1,
"gasPrice": {
"min": 1000000000,
"max": 1800000000,
"avg": 1350000000
},
"ppu": {
"min": 1000000000,
"max": 2500000000,
"avg": 1600000000
},
"txCount": 178,
"lastUpdated": 1704067200000
},
{
"shardId": 2,
"gasPrice": {
"min": 1000000000,
"max": 1200000000,
"avg": 1100000000
},
"ppu": {
"min": 1000000000,
"max": 1500000000,
"avg": 1200000000
},
"txCount": 92,
"lastUpdated": 1704067200000
}
],
"timestamp": 1704067200000
}
}Response Fields
Root Object
Field
Type
Description
Shard Statistics
Field
Type
Description
Metric Statistics
Field
Type
Description
Understanding Gas Statistics
Gas Price
PPU (Price Per Unit)
Shard Selection
Example: Dynamic Gas Pricing
Example: Gas Price Monitor UI
Default Values
Metric
Default Value
Meaning
Unsubscribe
Related Topics
Last updated
Was this helpful?