Scripting - Check Node Status

This is not a complete “HowTo”, just some info to get you started.

The command to use is getbeaconbeststatedetail
This command will return the current state of the beacon and with that the lists of nodes that are waiting, selected, earning.

In Postman you can run this code:

{
    "id": 1,
    "jsonrpc": "1.0",
    "method": "getbeaconbeststatedetail",
    "params": []
}

by https://mainnet.incognito.org/fullnode

More in-depth information on the function itself can be found on Github

5 Likes

The Github link seems to have been disconnected, is there a specific place to look for more information on this?

For other noobs like me exploring all of this.

  1. In Postman, you will use a GET request.
  2. For the URL use the link in Jamie’s original post.
  3. In Body, choose raw, then paste in:
    {
    “id”: 1,
    “jsonrpc”: “1.0”,
    “method”: “getbeaconbeststatedetail”,
    “params”: []
    }
  4. Click Send
  5. In the Body of the response, you will get a lot of info. Enjoy!
2 Likes

https://sdk-docs.incognito.org/#api


2 Likes