getpeerinfo | Bitcoin

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.

πŸ‘

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

Try the getpeerinfo RPC method yourself

Language
Click Try It! to start a request and see the response here!