Skip to main content
The server pushes this event to gasStats subscribers in real time on state changes (debounced at 50 ms), or every 5 seconds during idle periods. Each message covers one shard. Gas statistics combine pending mempool transactions and recent block averages per shard.

Topic

gasStats via subscribe

Event fields

type
string
Value is "gasStats".
data
object
{
  "type": "gasStats",
  "data": {
    "shard": 0,
    "gasPrice": {
      "min": 1000000000,
      "max": 1500000000,
      "avg": 1200000000,
      "bucketAvg": 1180000000,
      "percentiles": {
        "p50": 1150000000,
        "p75": 1350000000,
        "p90": 1450000000
      }
    },
    "ppu": {
      "min": 10,
      "max": 15,
      "avg": 12
    }
  }
}