Skip to main content

BlacklistAPIProxyPeer

Blacklists an API proxy peer, preventing connections from it through the API proxy.

Request

POST /nxt?requestType=blacklistAPIProxyPeer

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
peerstringPeer address (host:port)Yes
secretPhrasestringAdmin secret passphraseYes

Response

{
"done": true,
"errorCode": 0,
"errorDescription": ""
}

Example

curl -X POST "http://localhost:22024/nxt?requestType=blacklistAPIProxyPeer" \
-d "peer=192.168.1.100:22025" \
-d "secretPhrase=admin_secret_passphrase"