Bitcoin
Bitcoin
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Bitcoin
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
getnetworkinfo is a Bitcoin Core JSON-RPC method that reports how the node sees the Bitcoin peer-to-peer network along with its own software identity and relay policy. The response carries the Core version and subversion, the P2P protocolversion, whether networking is active, inbound and outbound connections, the list of reachable networks, and the relayfee and incrementalfee that govern which BTC transactions the node will accept and forward. Call it against https://bitcoin.therpc.io/YOUR_API_KEY to get the node's view of the P2P network plus its version and relay settings.
version and subversion strings to learn which Bitcoin Core build the endpoint runs, useful for feature gating.relayfee and incrementalfee to set sensible fee floors so your BTC transactions clear the node's mempool and relay rules.networkactive and the inbound/outbound connections counts as a quick health signal for the upstream node.Cette méthode ne prend aucun paramètre. Passez un tableau vide [].
| Type | Description |
|---|---|
| object | version, subversion, protocolversion, localservices, localrelay, timeoffset, networkactive, connections (in/out), networks[], relayfee, incrementalfee, localaddresses[], warnings. |
connections count and localaddresses belong to that node, so do not treat them as your client's network state.relayfee and incrementalfee are quoted in BTC per kvB. For sat/vB fee math, multiply by 1e8 to get satoshis and divide by 1000 — e.g. a relayfee of 0.00001 BTC/kvB is 1 sat/vB.