getnodestate

Get the node state

Parameters

None

Example

///request
curl -u user:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getnodestate","params": []}' http://<your-app-id>.ankr.com
//response
{
"error":null,
"id":1,
"jsonrpc":"2.0",
"result":{
"compile":"v0.5.1",
"height":572198,
"version":20000,
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"port":20338,
"rpcport":20336,
"restport":20334,
"wsport":20335,
"neighbors":[
{
"netaddress":"3.104.174.31:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:07 +0000 UTC",
"lastrecv":"2020-07-24 09:15:12 +0000 UTC",
"conntime":"2020-07-24 09:14:37.509337779 +0000 UTC m=+12895.428126898",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691139,
"lastblock":691139,
"lastpingtime":"2020-07-24 09:15:07.799818492 +0000 UTC m=+12925.718607623",
"lastpingmicros":290196
},
{
"netaddress":"13.234.214.31:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:03 +0000 UTC",
"lastrecv":"2020-07-24 09:15:13 +0000 UTC",
"conntime":"2020-07-24 09:14:58.106104724 +0000 UTC m=+12916.024893836",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691139,
"lastblock":691139,
"lastpingtime":"0001-01-01 00:00:00 +0000 UTC",
"lastpingmicros":0
},
{
"netaddress":"34.254.131.14:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:05 +0000 UTC",
"lastrecv":"2020-07-24 09:15:21 +0000 UTC",
"conntime":"2020-07-24 09:01:35.447273148 +0000 UTC m=+12113.366062265",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691134,
"lastblock":691139,
"lastpingtime":"2020-07-24 09:15:05.458826332 +0000 UTC m=+12923.377615442",
"lastpingmicros":25049757
},
{
"netaddress":"52.220.199.55:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:04 +0000 UTC",
"lastrecv":"2020-07-24 09:15:14 +0000 UTC",
"conntime":"2020-07-24 08:50:04.346958972 +0000 UTC m=+11422.265748080",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691125,
"lastblock":691139,
"lastpingtime":"2020-07-24 09:15:04.508589613 +0000 UTC m=+12922.427378728",
"lastpingmicros":161122
},
{
"netaddress":"47.244.97.2:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:04 +0000 UTC",
"lastrecv":"2020-07-24 09:15:14 +0000 UTC",
"conntime":"2020-07-24 09:06:34.594676868 +0000 UTC m=+12412.513465986",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691135,
"lastblock":691139,
"lastpingtime":"2020-07-24 09:15:04.80311632 +0000 UTC m=+12922.721905432",
"lastpingmicros":200896
},
{
"netaddress":"18.138.149.16:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:00 +0000 UTC",
"lastrecv":"2020-07-24 09:15:15 +0000 UTC",
"conntime":"2020-07-24 09:03:30.067551218 +0000 UTC m=+12227.986340313",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691134,
"lastblock":691139,
"lastpingtime":"2020-07-24 09:15:00.225440886 +0000 UTC m=+12918.144230015",
"lastpingmicros":157547
},
{
"netaddress":"162.62.27.196:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:15 +0000 UTC",
"lastrecv":"2020-07-24 09:15:15 +0000 UTC",
"conntime":"2020-07-24 09:02:15.431648302 +0000 UTC m=+12153.350437416",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691134,
"lastblock":691140,
"lastpingtime":"2020-07-24 09:15:15.487161003 +0000 UTC m=+12933.405950131",
"lastpingmicros":50974
},
{
"netaddress":"120.77.176.93:20338",
"services":"SFNodeNetwork|SFTxFiltering|SFNodeBloom",
"relaytx":false,
"lastsend":"2020-07-24 09:15:15 +0000 UTC",
"lastrecv":"2020-07-24 09:15:17 +0000 UTC",
"conntime":"2020-07-24 09:12:14.577514811 +0000 UTC m=+12752.496303942",
"timeoffset":0,
"version":20000,
"inbound":false,
"startingheight":691138,
"lastblock":691140,
"lastpingtime":"2020-07-24 09:15:15.895494018 +0000 UTC m=+12933.814283137",
"lastpingmicros":1181995
}
]
}
}