post https://api.infstones.com/theta/mainnet/
This API returns the node status.
Parameters
None
Result
Result Fields
Key | Type | Detail |
---|---|---|
address | String | address of the node |
chain_id | String | chain ID |
current_epoch | String | current epoch |
current_height | String | current block height |
current_time | String | current epoch time |
genesis_block_hash | String | hash of the genesis block |
latest_finalized_block_epoch | String | epoch of the latest finalized block |
latest_finalized_block_hash | String | hash of the latest finalized block |
latest_finalized_block_height | Integer | height of the latest finalized block |
latest_finalized_block_time | String | epoch time of the latest finalized block |
peer_id | String | peer ID |
snapshot_block_hash | String | hash of the snapshot block |
snapshot_block_height | String | height of the snapshot block |
syncing | Boolean | If the node is synced, return false |
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"theta.GetStatus","params": [],"id":1}'
Return
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"address": "0x309DAf934C3731Eda7255C4CEa38D8d881fb0af9",
"chain_id": "mainnet",
"current_epoch": "19443170",
"current_height": "19350070",
"current_time": "1677267102",
"genesis_block_hash": "0xd8836c6cf3c3ccea0b015b4ed0f9efb0ffe6254db793a515843c9d0f68cbab65",
"latest_finalized_block_epoch": "19443168",
"latest_finalized_block_hash": "0xac42dee3578d53e294ae78d7f648330df23dd8bd5436e06551d4c9dbe2265869",
"latest_finalized_block_height": 19350070,
"latest_finalized_block_time": "1677267089",
"peer_id": "0x309DAf934C3731Eda7255C4CEa38D8d881fb0af9",
"snapshot_block_hash": "0xfddd111b0fd01f49a4299404aa9d5b72ae93b1f9660bb3420e6794c127d803f8",
"snapshot_block_height": "19148547",
"syncing": false
}
}