Documentation exported from Bitcoin Core 0.20.0

listbanned (0.20.0 RPC)

blockchain

control

generating

mining

network

rawtransactions

util

wallet

zmq

listbanned

List all banned IPs/Subnets.

Result:
[                            (json array)
  {                          (json object)
    "address" : "str",       (string)
    "banned_until" : xxx,    (numeric)
    "ban_created" : xxx,     (numeric)
    "ban_reason" : "str"     (string)
  },
  ...
]

Examples:
> bitcoin-cli listbanned 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "listbanned", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/