---
name: getpeerinfo
btcversion: 25.0.0
btcgroup: network
permalink: en/doc/25.0.0/rpc/network/getpeerinfo/
---

getpeerinfo

Returns data about each connected network peer as a json array of objects.

Result:
[                                         (json array)
  {                                       (json object)
    "id" : n,                             (numeric) Peer index
    "addr" : "str",                       (string) (host:port) The IP address and port of the peer
    "addrbind" : "str",     