getnodeinfo

  • /wallet/getnodeinfo(Since Odyssey-v3.2)

Description: Query the current node information

// Request
curl -X GET http://<your-app-id>.ankr.com/wallet/getnodeinfo
// Result
{
"activeConnectCount":8,
"beginSyncNum":5111269,
"block":"Num:5111290,ID:00000000004dfdfad2b0367950c896289a17cb7dbbacd238ef3fac2a264885e6",
"cheatWitnessInfoMap":{
},
"configNodeInfo":{
"activeNodeSize":0,
"allowAdaptiveEnergy":0,
"allowCreationOfContracts":0,
"backupListenPort":10001,
"backupMemberSize":0,
"backupPriority":8,
"codeVersion":"4.0.1",
"dbVersion":2,
"discoverEnable":true,
"listenPort":18888,
"maxConnectCount":30,
"maxTimeRatio":5.0,
"minParticipationRate":15,
"minTimeRatio":0.0,
"p2pVersion":"11111",
"passiveNodeSize":0,
"sameIpMaxConnectCount":2,
"sendNodeSize":0,
"supportConstant":false,
"versionNum":"13210"
},
"currentConnectCount":8,
"machineInfo":{
"cpuCount":24,
"cpuRate":0.0512185377940622,
"deadLockThreadCount":0,
"deadLockThreadInfoList":[
],
"freeMemory":35377418240,
"javaVersion":"1.8.0_241",
"jvmFreeMemory":7402738896,
"jvmTotalMemoery":25542262784,
"memoryDescInfoList":[
{
"initSize":2555904,
"maxSize":251658240,
"name":"Code Cache",
"useRate":0.17119852701822916,
"useSize":43083520
},
{
"initSize":0,
"maxSize":-1,
"name":"Metaspace",
"useRate":0.9574946543616706,
"useSize":52961312
},
{
"initSize":0,
"maxSize":1073741824,
"name":"Compressed Class Space",
"useRate":0.005493029952049255,
"useSize":5898096
},
{
"initSize":131596288,
"maxSize":8160542720,
"name":"PS Eden Space",
"useRate":0.7888708980375266,
"useSize":6437614664
},
{
"initSize":21495808,
"maxSize":213385216,
"name":"PS Survivor Space",
"useRate":0.664593033474259,
"useSize":141814328
},
{
"initSize":349700096,
"maxSize":17179869184,
"name":"PS Old Gen",
"useRate":0.6728860838338733,
"useSize":11560094896
}
],
"osName":"Linux 5.4.0-42-generic",
"processCpuRate":0.006220784098176004,
"threadCount":219,
"totalMemory":134774792192
},
"passiveConnectCount":0,
"peerList":[
{
"active":true,
"avgLatency":607.0,
"blockInPorcSize":1,
"connectTime":1611425893705,
"disconnectTimes":14,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:0,ID:00000000000000001ebf88508a03865c71d452e25f4d51194196a1d22b6653dc",
"host":"47.90.214.240",
"inFlow":125021651,
"lastBlockUpdateTime":1611425893961,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"6b55e3926dfdfe2e44fb47781dac6c7d7e8c34bc22a8fe6b8d92e56a868151547c217e439e06a1b297928d8ad530164c09af1f86bada7891f757d42b4e320c1f",
"port":18888,
"remainNum":21899962,
"remoteDisconnectReason":"TOO_MANY_PEERS",
"score":0,
"syncBlockRequestedSize":77,
"syncFlag":false,
"syncToFetchSize":3999,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":21899962
},
{
"active":true,
"avgLatency":734.0,
"blockInPorcSize":1,
"connectTime":1611425886587,
"disconnectTimes":14,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:5111289,ID:00000000004dfdf9443e68bf7793850562d24e2224966eb91ad0005c6f0e93f9",
"host":"35.180.51.163",
"inFlow":15749983,
"lastBlockUpdateTime":1611425892300,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"aef61a17de596905638c4a8b40250f2d882edcb25d14a09b522efe089b8586136713428db690b5164db06ea3fa43cf076ac6e278eae1339e2760be733eb70614",
"port":18888,
"remainNum":21899965,
"remoteDisconnectReason":"TOO_MANY_PEERS",
"score":0,
"syncBlockRequestedSize":36,
"syncFlag":false,
"syncToFetchSize":3995,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":21899965
},
{
"active":true,
"avgLatency":818.0,
"blockInPorcSize":1,
"connectTime":1611425893707,
"disconnectTimes":14,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:0,ID:00000000000000001ebf88508a03865c71d452e25f4d51194196a1d22b6653dc",
"host":"47.90.201.118",
"inFlow":82890307,
"lastBlockUpdateTime":1611425893985,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"c8203dfd4e4dfd296f32a6faa2108d2ce0f649c49fdbdda62477a9fb2edfb308dd7bb15c892b1c2d6fd62b23f22ffaed8a085e21f2f5698ed141d30e6c48177f",
"port":18888,
"remainNum":21899962,
"remoteDisconnectReason":"RESET",
"score":0,
"syncBlockRequestedSize":76,
"syncFlag":false,
"syncToFetchSize":3999,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":21899962
},
{
"active":true,
"avgLatency":824.0,
"blockInPorcSize":1,
"connectTime":1611425886470,
"disconnectTimes":14,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:5111289,ID:00000000004dfdf9443e68bf7793850562d24e2224966eb91ad0005c6f0e93f9",
"host":"34.220.77.106",
"inFlow":80121568,
"lastBlockUpdateTime":1611425892300,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"762dda8ee2a23b94bc0a51af8c7c3829b05abd605b3bc8314c35476c69db1a6dbd29a6dbe60befea0b175ba4e321d59ec0bebc1131f0cce5ad58168042c0fd65",
"port":18888,
"remainNum":21899964,
"remoteDisconnectReason":"TOO_MANY_PEERS",
"score":0,
"syncBlockRequestedSize":0,
"syncFlag":false,
"syncToFetchSize":3996,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":21899964
},
{
"active":true,
"avgLatency":849.0,
"blockInPorcSize":1,
"connectTime":1611425886691,
"disconnectTimes":5,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:5111289,ID:00000000004dfdf9443e68bf7793850562d24e2224966eb91ad0005c6f0e93f9",
"host":"161.117.83.88",
"inFlow":120416155,
"lastBlockUpdateTime":1611425892300,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"b6823d6cc75a597cdae51136d0e449ac47f796b4c9153f4c0d961c808f286f8541ccdda9bdfa97b23408621570492068dc9675ad42e9c46ea318181c98bf606f",
"port":18888,
"remainNum":20756333,
"remoteDisconnectReason":"",
"score":0,
"syncBlockRequestedSize":53,
"syncFlag":false,
"syncToFetchSize":1994,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":20756333
},
{
"active":true,
"avgLatency":1145.0,
"blockInPorcSize":1,
"connectTime":1611425893799,
"disconnectTimes":15,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:0,ID:00000000000000001ebf88508a03865c71d452e25f4d51194196a1d22b6653dc",
"host":"95.216.46.155",
"inFlow":45227055,
"lastBlockUpdateTime":1611425894281,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"b8fcdcb4e0ea10f69104b064fa2002f9a84a45e7d5c11626e6286d2a51d3935d444ef2c3885bd88c8778165ff960d1dc01d2879f36722bcaac1a1a92c01eecaa",
"port":18888,
"remainNum":21899962,
"remoteDisconnectReason":"",
"score":0,
"syncBlockRequestedSize":100,
"syncFlag":false,
"syncToFetchSize":3999,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":21899962
},
{
"active":true,
"avgLatency":1229.0,
"blockInPorcSize":1,
"connectTime":1611425893794,
"disconnectTimes":15,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:0,ID:00000000000000001ebf88508a03865c71d452e25f4d51194196a1d22b6653dc",
"host":"47.75.74.31",
"inFlow":16504834,
"lastBlockUpdateTime":1611425894138,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"b41951f6c859efd9796201d439140d8e24b78a916361f954c877b3f7165d0cbb3116d6f7c8f63f264fd60c238504c004de2794f5672f3b97c9e86d068cc62cb0",
"port":18888,
"remainNum":21899962,
"remoteDisconnectReason":"TOO_MANY_PEERS",
"score":0,
"syncBlockRequestedSize":100,
"syncFlag":false,
"syncToFetchSize":3999,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":21899962
},
{
"active":true,
"avgLatency":1393.0,
"blockInPorcSize":1,
"connectTime":1611425893897,
"disconnectTimes":9,
"headBlockTimeWeBothHave":0,
"headBlockWeBothHave":"Num:0,ID:00000000000000001ebf88508a03865c71d452e25f4d51194196a1d22b6653dc",
"host":"47.241.11.67",
"inFlow":27052151,
"lastBlockUpdateTime":1611425894344,
"lastSyncBlock":"",
"localDisconnectReason":"TIME_OUT",
"needSyncFromPeer":true,
"needSyncFromUs":false,
"nodeCount":77,
"nodeId":"b277f28804ae4b1289fe4c9b1122ad4fda0dccd71d84b528335d5ffab9f1584ec78882c00d2903f8a7caef60561f7036d33876f37db7be90ff2372f1f59cfbf5",
"port":18888,
"remainNum":21899962,
"remoteDisconnectReason":"TOO_MANY_PEERS",
"score":0,
"syncBlockRequestedSize":100,
"syncFlag":false,
"syncToFetchSize":3999,
"syncToFetchSizePeekNum":5111291,
"unFetchSynNum":21899962
}
],
"solidityBlock":"Num:5111272,ID:00000000004dfde86205d89af0a8503a9d7469b657b252d04ba5a10f8e2df19e",
"totalFlow":512983704
}