Skip to main content

getpeerinfo

Overview

The 'getpeerinfo' method returns the estimated network hashes per second based on the last n blocks.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KE' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getpeerinfo","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

Response

{
"result": [
"n",
...
],
"error": null,
"id": 1
}