Fetch current status and active modes of the light client
LOOKING FOR INSTRUCTIONS ON HOW TO RUN YOUR OWN LIGHT CLIENT?
You can check out our docs here for instructions on how to run your own light client.
Gets current status and active modes of the light client.
Params:
- None
Response:
- modes - active modes
- app_id - if app mode is active, this field contains configured application ID
- genesis_hash - genesis hash of the network to which the light client is connected
- network - network host, version and spec version light client is currently con
- blocks - state of processed blocks
Modes
- light - data availability sampling mode, the light client performs random sampling and calculates confidence
- app - light client fetches, verifies, and stores application-related data
Blocks
- latest - block number of the latest finalized (opens in a new tab) block received from the node
- available - range of blocks with verified data availability (configured confidence has been achieved)
- app_data - range of blocks with app data retrieved and verified
- historical_sync - state for historical blocks syncing up to configured block (ommited if historical sync is not configured)
Historical sync
- synced -
true
if there are no historical blocks left to sync - available - range of historical blocks with verified data availability (configured confidence has been achieved)
- app_data - range of historical blocks with app data retrieved and verified
curl "localhost:7007/v2/status"
Sample Response:
{
"modes":["light"],
"genesis_hash":"0x6f09966420b2608d1947ccfb0f2a362450d1fc7fd902c29b67c906eaa965a7ae",
"network":"wss://goldberg.avail.tools:443/ws/1.11.1-38304bb5126/data-avail/22",
"blocks":{
"latest":572269,
"available":{
"first":572068,
"last":572268
}
}
}