ping

Input(s) 0

The ping RPC is used to request that a ping be sent to all other nodes in the network to measure the ping time. The results of this ping are provided in the getpeerinfo, pingtime, and pingwait fields, which are measured in decimal seconds. It's important to note that the ping command is handled in the queue with all other commands, meaning it measures the processing backlog in addition to network ping time.

How is this used?

The ping RPC is utilized to measure the ping time to other nodes in the Bitcoin network. By sending a ping request to all other nodes, a node can measure the round-trip time it takes for the ping to be sent and received. This information is valuable for assessing the network's latency and overall health. The ping results, including pingtime and pingwait, provide insights into the network's responsiveness and any processing backlog. This command is useful for network diagnostics and monitoring the performance of the Bitcoin node.

Request

method

ping

Inputs

Result