getarchivepeers
New since v30.2
Summary
Returns archive-relevant peer state for bootstrap, fallback debugging, and monitoring.
Description
Returns archive-relevant peer state for bootstrap, fallback debugging, and monitoring. This RPC reports observed and configured state only. NODE_ARCHIVE is a peer advertisement, not proof that the peer can serve all historical data.
Change Buckets
- New since v30.2
Arguments
view(STR): Return view: "all", "summary", "connected", or "configured".
Results
value(OBJ): No description.summary(OBJ): No description.connected_advertised_archive_peers(NUM): Currently connected peers whose observed service bits include NODE_ARCHIVEconnected_archive_connections(NUM): Currently connected peers opened through -connectarchiveconfigured_archive_targets(NUM): Configured -connectarchive entriesconnected_configured_archive_targets(NUM): Configured -connectarchive entries currently connected
connected(ARR, optional): Archive-relevant connected peers, included for view "all" or "connected"value(OBJ): No description.nodeid(NUM): Connected peer idaddress(STR): (host:port) The IP address and port of the peerconnection_type(STR): Type of connectionarchive_connection(BOOL): Whether this connection was opened from -connectarchiveadvertises_archive(BOOL): Whether observed services include NODE_ARCHIVEservices(STR_HEX): The observed services offeredservicesnames(ARR): The observed services offered, in human-readable formSERVICE_NAME(STR): The service name if it is recognised
configured(ARR, optional): Configured -connectarchive targets, included for view "all" or "configured"value(OBJ): No description.target(STR): Configured -connectarchive target as provided by the operatorsource(STR): Configuration source, always "connectarchive" in this versionconnected(BOOL): Whether this configured target currently has a matching connected peernodeid(NUM, optional): Connected peer id when connected=true
Examples
qbit-cli getarchivepeers
qbit-cli getarchivepeers "summary"
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getarchivepeers", "params": ["connected"]}' -H 'content-type: application/json' http://127.0.0.1:8352/