getnetworkinfo

Back to network

Summary

Returns an object containing various state info regarding P2P networking.

Description

Returns an object containing various state info regarding P2P networking.

Arguments

None.

Results

  • value (OBJ): No description.
  • version (NUM): the server version
  • subversion (STR): the server subversion string
  • protocolversion (NUM): the protocol version
  • localservices (STR_HEX): the services we offer to the network
  • localservicesnames (ARR): the services we offer to the network, in human-readable form
    • SERVICE_NAME (STR): the service name
  • localrelay (BOOL): true if transaction relay is requested from peers
  • timeoffset (NUM): the time offset
  • connections (NUM): the total number of connections
  • connections_in (NUM): the number of inbound connections
  • connections_out (NUM): the number of outbound connections
  • networkactive (BOOL): whether p2p networking is enabled
  • networks (ARR): information per network
    • value (OBJ): No description.
    • name (STR): network (ipv4, ipv6, onion, i2p, cjdns)
    • limited (BOOL): is the network limited using -onlynet?
    • reachable (BOOL): is the network reachable?
    • proxy (STR): ("host:port") the proxy that is used for this network, or empty if none
    • proxy_randomize_credentials (BOOL): Whether randomized credentials are used
  • relayfee (NUM): minimum relay fee rate for transactions in QBT/kvB
  • incrementalfee (NUM): minimum fee rate increment for mempool limiting or replacement in QBT/kvB
  • localaddresses (ARR): list of local addresses
    • value (OBJ): No description.
    • address (STR): network address
    • port (NUM): network port
    • score (NUM): relative score
  • warnings (ARR): any network and blockchain warnings (run with -deprecatedrpc=warnings to return the latest warning as a single string)
    • value (STR): warning

Examples

qbit-cli getnetworkinfo
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getnetworkinfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/