> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# listbanned | Bitcoin

> The listbanned method retrieves a list of all IP addresses and subnets that have been banned from connecting to the node. On Bitcoin.

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.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

## 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.


## OpenAPI

````yaml /openapi/bitcoin_node_api/listbanned.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: listbanned example
  version: 1.0.0
  description: >-
    This is an API example for listbanned, a method to list all banned IP
    addresses and subnets.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: listbanned
      operationId: listBanned
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: listbanned
                params: {}
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: A list of all banned IP addresses and subnets.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: array
                    items:
                      type: object
                      properties:
                        address:
                          type: string
                          description: The banned IP address or subnet.
                        banned_until:
                          type: integer
                          description: Timestamp in Unix time when the ban will be lifted.
                        ban_created:
                          type: integer
                          description: Timestamp in Unix time when the ban was created.
                        ban_reason:
                          type: string
                          description: Reason for the ban.
                    description: Details about each banned IP address or subnet.
                  error:
                    type: object
                  id:
                    type: integer

````