getnetworkinfo

Returns an object containing various state info regarding P2P networking, including version information, network status, connections, and relay fees.

Path parameters

apiKeystringRequiredDefaults to docs-demo

Response

Object containing P2P networking state information.
versioninteger or null
The server version.
subversionstring or null

The server subversion string (e.g., “/Satoshi:x.x.x/”).

protocolversioninteger or null
The protocol version.
localservicesstring or null

The services we offer to the network (hex string).

localservicesnameslist of strings or null
List of network services offered.
localrelayboolean or null
True if transaction relay is requested from peers.
timeoffsetinteger or null
The time offset in seconds.
connectionsinteger or null
The total number of connections.
connections_ininteger or null
The number of inbound connections.
connections_outinteger or null
The number of outbound connections.
networkactiveboolean or null
Whether P2P networking is enabled.
networkslist of objects or null
Information per network.
relayfeedouble or null

Minimum relay fee for transactions in BTC/kvB.

incrementalfeedouble or null

Minimum fee increment for mempool limiting or BIP 125 replacement in BTC/kvB.

localaddresseslist of objects or null
List of local addresses.
warningsstring or null
Any network and blockchain warnings.