bitcoind.app
CommandsGuidesContact ↗
Home/Network/getnettotals
Network

getnettotals

Returns information about network traffic, including bytes in, bytes out, and current time.

Returns

objectNetwork traffic totals

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getnettotals","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "totalbytesrecv": 5678901234,
  "totalbytessent": 1234567890,
  "timemillis": 1713571767000
}
← Previous
getconnectioncount
Next →
getnetworkinfo

More Network Commands

addnodeclearbanneddisconnectnodegetaddednodeinfogetconnectioncountgetnetworkinfo

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗