theta.GetStatus

This API returns the node status.

Parameters

None

Result

Result Fields

KeyTypeDetail
addressStringaddress of the node
chain_idStringchain ID
current_epochStringcurrent epoch
current_heightStringcurrent block height
current_timeStringcurrent epoch time
genesis_block_hashStringhash of the genesis block
latest_finalized_block_epochStringepoch of the latest finalized block
latest_finalized_block_hashStringhash of the latest finalized block
latest_finalized_block_heightIntegerheight of the latest finalized block
latest_finalized_block_timeStringepoch time of the latest finalized block
peer_idStringpeer ID
snapshot_block_hashStringhash of the snapshot block
snapshot_block_heightStringheight of the snapshot block
syncingBooleanIf 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
    }
}
Language
Click Try It! to start a request and see the response here!