GET
GetChainInfoPublicGet blockchain info including block height, validators, and network stats.
Response
| Field | Type |
|---|---|
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 |
timestamp | Timestamp |
total_fees_collected | uint64 |
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}