GETGetChainInfoPublic

Get blockchain info including block height, validators, and network stats.

Response

FieldTypeDescription
chain_idstring
block_heightuint64
latest_block_hashHash
tpsuint64
validator_countuint32
online_validatorsuint32
mempool_sizeuint32
uptime_secondsuint64
total_txsuint64Total transactions processed
timestampTimestamp
total_fees_collecteduint64Total trading fees collected (raw units, /1e8 for display)

Example

Request

import { RealmClient } from '@realm/sdk';
const client = new RealmClient('https://api.realm.com');
const response = await client.getChainInfo();
console.log(response);

Response

{
// Response fields
}