getCurrentState
️️⚠️ Note: This endpoint is not available for local validators.
Description: Retrieves the current state of the node, including information about the blockchain and network status.
Method: POST
Parameters: None.
Returns: A CurrentState
object.
Request:
curl -vL POST -H 'Content-Type: application/json' -d '
{
"jsonrpc":"2.0",
"id":1,
"method":"get_current_state",
"params":[]
}' \
http://localhost:9002/
Response:
{
"jsonrpc": "2.0",
"result": {
"state": "Running",
"last_state_transition": "2023-10-01T12:00:00Z"
},
"id": 1
}