Skip to main content

DumpPeers

Dumps peer addresses to a semicolon-separated string for backup or sharing.

Request

POST /nxt?requestType=dumpPeers

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
versionstringFilter by version prefix (e.g., "1.0")No
includeNewerbooleanInclude newer versions than specified (default: false)No
servicestringFilter by service (repeatable: BLOCKS, TRANSACTIONS, etc.)No
connectbooleanAttempt to connect to all peers (default: false)No
adminPasswordstringAdmin password (required if connect=true)No

Response

{
"peers": "192.168.1.100:22025; 192.168.1.101:22025; ",
"count": 2,
"errorCode": 0,
"errorDescription": ""
}

Example

curl -X POST "http://localhost:22024/nxt?requestType=dumpPeers" \
-d "version=1.0" \
-d "includeNewer=true" \
-d "service=BLOCKS" \
-d "connect=false"