Skip to main content

getrpcinfo

Overview

The 'getrpcinfo' method provides detailed information about the active RPC commands in the Bitcoin network. It returns a JSON object containing an array of active commands and the path to the debug log.

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-KEY' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"getrpcinfo","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

The 'getrpcinfo' method does not require any parameters. Simply include an empty array in the params field.\

Response

{
"result": {
"active_commands": [
{
"method": "string",
"duration": "numeric"
},
...
],
"logpath": "string"
},
"error": null,
"id": 1
}