POST
/
788f110831fe13808302bd79796d55e8
curl --request POST \
  --url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "1.0",
  "method": "listbanned",
  "params": "<any>",
  "id": 1
}'
{
  "result": [
    {
      "address": "<string>",
      "banned_until": 123,
      "ban_created": 123,
      "ban_reason": "<string>"
    }
  ],
  "error": {},
  "id": 123
}

The listbanned method retrieves a list of all IP addresses and subnets that have been banned from connecting to the node. This can be useful for monitoring and managing network security.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • None

Response

  • result — an array of objects, each representing a banned IP address or subnet, along with details such as when the ban was created, when it will be lifted, and the reason for the ban.
  • error — an object containing an error message if an error occurred, otherwise null.
  • id — an integer representing the ID of the request.

Use case

The listbanned method is particularly useful for node operators looking to review and manage the list of banned IP addresses or subnets, ensuring the security and integrity of their node’s connections.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:listbanned
params
any
id
integer
default:1

Response

200 - application/json
A list of all banned IP addresses and subnets.
result
object[]

Details about each banned IP address or subnet.

error
object
id
integer