GET
GetChainInfoPublicGet blockchain info including block height, validators, and network stats.
Response
| Field | Type | Description |
|---|---|---|
chain_id | string | |
block_height | uint64 | |
latest_block_hash | Hash | |
tps | uint64 | |
validator_count | uint32 | |
online_validators | uint32 | |
mempool_size | uint32 | |
uptime_seconds | uint64 | |
total_txs | uint64 | Total transactions processed |
timestamp | Timestamp | |
total_fees_collected | uint64 | Total 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}