Skip to main content

GetPeer

Retrieves detailed information about a specific peer.

Request

GET /nxt?requestType=getPeer

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
peerstringPeer address (host:port)Yes

Response

{
"address": "192.168.1.100",
"port": 22025,
"state": 1,
"announcedAddress": "192.168.1.100:22025",
"shareAddress": true,
"downloadedVolume": 1024000,
"uploadedVolume": 512000,
"application": "Shamwari",
"version": "1.0.0",
"platform": "Linux",
"apiPort": 22024,
"apiSSLPort": 0,
"blacklisted": false,
"lastUpdated": 1700000000,
"lastConnectAttempt": 1700000000,
"inbound": false,
"services": ["BLOCKS", "TRANSACTIONS"],
"blockchainState": "UP_TO_DATE",
"errorCode": 0,
"errorDescription": ""
}

Example

curl "http://localhost:22024/nxt?requestType=getPeer&peer=192.168.1.100:22025"