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

# getpeerinfo | Bitcoin

> The getpeerinfo method provides detailed information about all peers currently connected to the node. Chainstack Bitcoin reference.

The `getpeerinfo` method provides detailed information about all peers currently connected to the node. This includes data such as their IP address, connection type, version, and more.

<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 connected peer and containing detailed information about that peer.
* `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 `getpeerinfo` method is useful for network diagnostics and monitoring, allowing node operators to view detailed information about all peers connected to their node. This can help in assessing the health and diversity of the network connections.


## OpenAPI

````yaml /openapi/bitcoin_node_api/getpeerinfo.json POST /788f110831fe13808302bd79796d55e8
openapi: 3.0.0
info:
  title: getpeerinfo example
  version: 1.0.0
  description: >-
    This is an API example for getpeerinfo, a method to retrieve information
    about each connected peer.
servers:
  - url: https://nd-202-842-353.p2pify.com
security: []
paths:
  /788f110831fe13808302bd79796d55e8:
    post:
      tags:
        - Blockchain Operations
      summary: getpeerinfo
      operationId: getPeerInfo
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '1.0'
                method:
                  type: string
                  default: getpeerinfo
                params: {}
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Information about each connected peer.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: array
                    items:
                      type: object
                    description: A list of objects containing information about each peer.
                  error:
                    type: object
                  id:
                    type: integer

````