GetNodeInfo

Query Node Information. Returns information about current state of node.

Request

curl --request GET \
     --url https://tron.api.watchdata.io/wallet/getnodeinfo \
     --header 'Accept: application/json'

Response

{
  "activeConnectCount": 2,
  "beginSyncNum": 23474629,
  "block": "Num:23474649,ID:00000000016631d90c1e4d0e15d29819e90d9f0fce62d35eb5ec4fafc2cb76d5",
  "cheatWitnessInfoMap": {},
  "configNodeInfo": {
    "activeNodeSize": 2,
    "allowAdaptiveEnergy": 1,
    "allowCreationOfContracts": 1,
    "backupListenPort": 10001,
    "backupMemberSize": 0,
    "backupPriority": 6,
    "codeVersion": "4.4.4",
    "dbVersion": 2,
    "discoverEnable": false,
    "listenPort": 16666,
    "maxConnectCount": 30,
    "maxTimeRatio": 5,
    "minParticipationRate": 0,
    "minTimeRatio": 0,
    "p2pVersion": "1",
    "passiveNodeSize": 0,
    "sameIpMaxConnectCount": 2,
    "sendNodeSize": 0,
    "supportConstant": true,
    "versionNum": "16676"
  },
  "currentConnectCount": 2,
  "machineInfo": {
    "cpuCount": 4,
    "cpuRate": 0,
    "deadLockThreadCount": 0,
    "deadLockThreadInfoList": [],
    "freeMemory": 317374464,
    "javaVersion": "1.8.0_171",
    "jvmFreeMemory": 12620465208,
    "jvmTotalMemory": 12850036736,
    "memoryDescInfoList": [
      {
        "initSize": 2555904,
        "maxSize": 268435456,
        "name": "Code Cache",
        "useRate": 0.22254657745361328,
        "useSize": 59739392
      },
      {
        "initSize": 0,
        "maxSize": -1,
        "name": "Metaspace",
        "useRate": 0.9361113555073546,
        "useSize": 66732368
      },
      {
        "initSize": 0,
        "maxSize": 1073741824,
        "name": "Compressed Class Space",
        "useRate": 0.006820455193519592,
        "useSize": 7323408
      },
      {
        "initSize": 68222976,
        "maxSize": 279183360,
        "name": "Par Eden Space",
        "useRate": 0.09718123601635857,
        "useSize": 27131384
      },
      {
        "initSize": 8519680,
        "maxSize": 34865152,
        "name": "Par Survivor Space",
        "useRate": 0.0794753454681626,
        "useSize": 2770920
      },
      {
        "initSize": 170590208,
        "maxSize": 12535988224,
        "name": "CMS Old Gen",
        "useRate": 0.015927681203284447,
        "useSize": 199669224
      }
    ],
    "osName": "Linux 3.10.0-693.5.2.el7.x86_64",
    "processCpuRate": 0.06666666666666667,
    "threadCount": 174,
    "totalMemory": 16261898240
  },
  "passiveConnectCount": 0,
  "peerList": [
    {
      "active": true,
      "avgLatency": 6,
      "blockInPorcSize": 0,
      "connectTime": 1646368419470,
      "disconnectTimes": 0,
      "headBlockTimeWeBothHave": 0,
      "headBlockWeBothHave": "Num:23472202,ID:000000000166284aa55256b569ac52d4daa3cd0294bc37312dc41e5e9dacb30b",
      "host": "54.186.12.211",
      "inFlow": 9815,
      "lastBlockUpdateTime": 1649169501084,
      "lastSyncBlock": "Num:22673395,ID:000000000159f7f3d8674b83b1bf20da3d12c335813f690dd0500aa1b3afae05",
      "localDisconnectReason": "",
      "needSyncFromPeer": false,
      "needSyncFromUs": false,
      "nodeCount": 0,
      "nodeId": "d817300254ceaf3543611fef3a0e28edcc0a6db23581aa2210b42560f72a0e3d1865f826c330d93bdfabdaa45bac5d089f0f3c2b1668d5f9433abdba7100074e",
      "port": 16666,
      "remainNum": 0,
      "remoteDisconnectReason": "",
      "score": 20,
      "syncBlockRequestedSize": 0,
      "syncFlag": false,
      "syncToFetchSize": 0,
      "syncToFetchSizePeekNum": -1,
      "unFetchSynNum": 0
    },
    {
      "active": true,
      "avgLatency": 8,
      "blockInPorcSize": 0,
      "connectTime": 1646368441074,
      "disconnectTimes": 0,
      "headBlockTimeWeBothHave": 0,
      "headBlockWeBothHave": "Num:23470184,ID:0000000001662068263c31d8009deae71f38584bb9d8cdb2138bb2c2b578a5cd",
      "host": "54.69.254.172",
      "inFlow": 13495,
      "lastBlockUpdateTime": 1649162313021,
      "lastSyncBlock": "Num:23324197,ID:000000000163e625fb51dbff27ccacabc5d542d3188e44d5ff7c603022246972",
      "localDisconnectReason": "",
      "needSyncFromPeer": false,
      "needSyncFromUs": false,
      "nodeCount": 0,
      "nodeId": "2c4859dc8805122b1b39bab720da9abc06214c1935b207076211ab812bf1f87ba398237bb680b10c0d3499a26fe90fdda6db98bee5649b4af4e2e702a8d26007",
      "port": 16666,
      "remainNum": 0,
      "remoteDisconnectReason": "",
      "score": 21,
      "syncBlockRequestedSize": 0,
      "syncFlag": false,
      "syncToFetchSize": 0,
      "syncToFetchSizePeekNum": -1,
      "unFetchSynNum": 0
    }
  ],
  "solidityBlock": "Num:23474631,ID:00000000016631c7916ba3e320b5f5e4da2e7a0a6e4c5b25da954480f34bb12a",
  "totalFlow": 23310
}

Last updated