GETGetChainInfoPublic

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

Response

FieldType
chain_idstring
block_heightuint64
latest_block_hashHash
tpsuint64
validator_countuint32
online_validatorsuint32
mempool_sizeuint32
uptime_secondsuint64
total_txsuint64
timestampTimestamp
total_fees_collecteduint64

Example

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