Network Statistics
Connection
const ws = new WebSocket('wss://relayer.xoxno.com/ws/stats');
ws.onmessage = (event) => {
const msg = JSON.parse(event.data);
// msg.type === 'networkStats'
console.log(msg);
};Message Schema
{
"type": "networkStats",
"schemaVersion": "1.1.0",
"sequence": 1,
"ts": 1738800000000,
"data": {
"network": {
"currentTps": 2500,
"avgTps10s": 2400,
"avgTps30s": 2350,
"connectedPeers": 450,
"activeValidators": 32,
"wsLagMs": 25
},
"blocks": {
"latestShard": {
"shardId": 0,
"nonce": 54321,
"round": 12345,
"epoch": 678,
"txCount": 5000,
"executedTxCount": 4950,
"timestampMs": 1738800000000,
"leaderSignatureHex": "0x...",
"accumulatedFees": "1234567890000000000",
"developerFees": "123456789000000000"
},
"latestMeta": {
"nonce": 54321,
"round": 12345,
"epoch": 678,
"txCount": 15000,
"executedTxCount": 14850,
"timestampMs": 1738800000000
},
"blockTimeMsP50ByShard": {
"0": 6250,
"1": 6200,
"2": 6300
},
"nonceGapEvents1m": 0,
"duplicateNonceEvents1m": 0
},
"mempool": {
"estimatedQueue": 500,
"ingressTps": 3000,
"inclusionTps": 2500,
"pressure": 0.167
},
"validators": {
"onlineByShard": {
"0": 11,
"1": 11,
"2": 10,
"meta": 0
},
"totalOnline": 32,
"heartbeatRatePerSec": 0.53
},
"health": {
"p2pDedupRatio1m": 0.02,
"streamSubscribers": 45,
"dataCompleteness": 0.95
}
}
}Field Descriptions
Top-Level Envelope
Field
Type
Description
data.network
Field
Type
Description
data.blocks.latestShard
Field
Type
Description
data.blocks.latestMeta
data.blocks (additional)
Field
Type
Description
data.mempool
Field
Type
Description
data.validators
Field
Type
Description
data.health
Field
Type
Description
Schema Versioning
Example: Network Dashboard
Use Cases
Related Pages
Last updated
Was this helpful?