Skip to main content

getpeerinfo RPC Method

Returns information about peers currently connected to this Bitcoin Cash node.

Updated on
Nov 26, 2026

The sample response shows one peer. A live response includes every connected peer.

Parameters

This method does not accept any parameters

Returns

result
array

One entry per connected peer.

id
integer

Identifier for this peer connection.

addr
string

Remote peer address and port.

addrlocal
string

Local address as reported by the peer.

addrbind
string

Local address and port bound for this connection.

services
string

Service flags advertised by the peer, encoded as hexadecimal.

servicesnames
array

Human-readable names of service flags advertised by the peer.

relaytxes
boolean

Whether the peer relays transactions.

lastsend
integer

Unix timestamp of the last message sent.

lastrecv
integer

Unix timestamp of the last message received.

bytessent
integer

Total bytes sent to the peer.

bytesrecv
integer

Total bytes received from the peer.

conntime
integer

Unix timestamp when the connection began.

timeoffset
integer

Peer time offset in seconds.

pingtime
number

Latest ping round-trip time in seconds.

minping
number

Minimum observed ping time in seconds.

version
integer

Peer protocol version.

subver
string

Peer software version string.

inbound
boolean

Whether this is an inbound connection.

bip152_hb_to
boolean

Whether compact block high-bandwidth mode is enabled toward this peer.

bip152_hb_from
boolean

Whether compact block high-bandwidth mode is enabled from this peer.

addnode
boolean

Whether the peer was added through the addnode setting.

connection_type
string

Type of peer connection.

startingheight
integer

Peer-reported starting block height.

banscore
integer

Peer ban score.

synced_headers
integer

Highest header height synchronized with this peer.

synced_blocks
integer

Highest block height synchronized with this peer.

inflight
array

Block heights currently requested from this peer.

addr_processed
integer

Number of peer addresses processed.

addr_rate_limited
integer

Number of peer addresses limited by rate controls.

whitelisted
boolean

Whether the peer is whitelisted.

permissions
array

Permissions granted to this peer.

minfeefilter
number

Minimum transaction fee rate requested by the peer.

bytessent_per_msg
object

Map of message type to bytes sent.

bytesrecv_per_msg
object

Map of message type to bytes received.

error
object | null

JSON-RPC error, or null on success.

id
integer

JSON-RPC request identifier.

Request
Response
1
{
2
"result": [
3
{
4
"id": 9,
5
"addr": "192.0.2.1:8333",
6
"addrlocal": "198.51.100.1:51372",
7
"addrbind": "198.51.100.1:51372",
8
"services": "0000000000000425",
9
"servicesnames": [
10
"NETWORK",
11
"BLOOM",
12
"BITCOIN_CASH",
13
"NETWORK_LIMITED"
14
],
15
"relaytxes": true,
16
"lastsend": 1795593285,
17
"lastrecv": 1795593283,
18
"bytessent": 9095103,
19
"bytesrecv": 9286594,
20
"conntime": 1795163309,
21
"timeoffset": 0,
22
"pingtime": 0.008804,
23
"minping": 0.007433,
24
"version": 70016,
25
"subver": "/Bitcoin Cash Node:29.0.0(EB32.0)/",
26
"inbound": false,
27
"bip152_hb_to": false,
28
"bip152_hb_from": false,
29
"addnode": false,
30
"connection_type": "outbound-full-relay",
31
"startingheight": 978141,
32
"banscore": 0,
33
"synced_headers": 978891,
34
"synced_blocks": 978891,
35
"inflight": [],
36
"addr_processed": 1091,
37
"addr_rate_limited": 0,
38
"whitelisted": false,
39
"permissions": [],
40
"minfeefilter": 0.00001,
41
"bytessent_per_msg": {
42
"addrv2": 12278,
43
"cmpctblock": 4253,
44
"dsproof-beta": 5858,
45
"feefilter": 32,
46
"getaddr": 24,
47
"getblocktxn": 376,
48
"getdata": 428673,
49
"getheaders": 1053,
50
"headers": 12296,
51
"inv": 7905290,
52
"notfound": 305,
53
"ping": 114560,
54
"pong": 114528,
55
"reject": 162,
56
"sendaddrv2": 24,
57
"sendcmpct": 99,
58
"sendheaders": 24,
59
"tx": 495108,
60
"verack": 24,
61
"version": 136
62
},
63
"bytesrecv_per_msg": {
64
"addrv2": 20754,
65
"blocktxn": 48041,
66
"cmpctblock": 1328115,
67
"dsproof-beta": 4602,
68
"feefilter": 32,
69
"getdata": 130533,
70
"getheaders": 1053,
71
"headers": 13568,
72
"inv": 1789200,
73
"notfound": 158,
74
"ping": 114528,
75
"pong": 114560,
76
"reject": 78,
77
"sendaddrv2": 24,
78
"sendcmpct": 99,
79
"sendheaders": 24,
80
"tx": 5721057,
81
"verack": 24,
82
"version": 144
83
}
84
}
85
],
86
"error": null,
87
"id": 1
88
}
1
{
2
"result": [
3
{
4
"id": 9,
5
"addr": "192.0.2.1:8333",
6
"addrlocal": "198.51.100.1:51372",
7
"addrbind": "198.51.100.1:51372",
8
"services": "0000000000000425",
9
"servicesnames": [
10
"NETWORK",
11
"BLOOM",
12
"BITCOIN_CASH",
13
"NETWORK_LIMITED"
14
],
15
"relaytxes": true,
16
"lastsend": 1795593285,
17
"lastrecv": 1795593283,
18
"bytessent": 9095103,
19
"bytesrecv": 9286594,
20
"conntime": 1795163309,
21
"timeoffset": 0,
22
"pingtime": 0.008804,
23
"minping": 0.007433,
24
"version": 70016,
25
"subver": "/Bitcoin Cash Node:29.0.0(EB32.0)/",
26
"inbound": false,
27
"bip152_hb_to": false,
28
"bip152_hb_from": false,
29
"addnode": false,
30
"connection_type": "outbound-full-relay",
31
"startingheight": 978141,
32
"banscore": 0,
33
"synced_headers": 978891,
34
"synced_blocks": 978891,
35
"inflight": [],
36
"addr_processed": 1091,
37
"addr_rate_limited": 0,
38
"whitelisted": false,
39
"permissions": [],
40
"minfeefilter": 0.00001,
41
"bytessent_per_msg": {
42
"addrv2": 12278,
43
"cmpctblock": 4253,
44
"dsproof-beta": 5858,
45
"feefilter": 32,
46
"getaddr": 24,
47
"getblocktxn": 376,
48
"getdata": 428673,
49
"getheaders": 1053,
50
"headers": 12296,
51
"inv": 7905290,
52
"notfound": 305,
53
"ping": 114560,
54
"pong": 114528,
55
"reject": 162,
56
"sendaddrv2": 24,
57
"sendcmpct": 99,
58
"sendheaders": 24,
59
"tx": 495108,
60
"verack": 24,
61
"version": 136
62
},
63
"bytesrecv_per_msg": {
64
"addrv2": 20754,
65
"blocktxn": 48041,
66
"cmpctblock": 1328115,
67
"dsproof-beta": 4602,
68
"feefilter": 32,
69
"getdata": 130533,
70
"getheaders": 1053,
71
"headers": 13568,
72
"inv": 1789200,
73
"notfound": 158,
74
"ping": 114528,
75
"pong": 114560,
76
"reject": 78,
77
"sendaddrv2": 24,
78
"sendcmpct": 99,
79
"sendheaders": 24,
80
"tx": 5721057,
81
"verack": 24,
82
"version": 144
83
}
84
}
85
],
86
"error": null,
87
"id": 1
88
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free