getrpcinfo - Bitcoin Cash
Example code for the getrpcinfo JSON-RPC method. Complete guide on how to use the getrpcinfo JSON-RPC method in the GetBlock Web3 documentation.
Parameters
Request
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "getrpcinfo",
"params": [],
"id": "getblock.io"
}'const axios = require('axios');
const { data } = await axios.post('https://go.getblock.io/<ACCESS-TOKEN>/', {
jsonrpc: '2.0', method: 'getrpcinfo', params: [], id: 'getblock.io'
});
console.log(data.result.active_commands);import requests
response = requests.post(
'https://go.getblock.io/<ACCESS-TOKEN>/',
headers={'Content-Type': 'application/json'},
json={
'jsonrpc': '2.0',
'method': 'getrpcinfo',
'params': [],
'id': 'getblock.io'
}
)
print(response.json()['result'])Response
{
"result": {
"active_commands": [
{
"method": "getrpcinfo",
"duration": 1
}
]
},
"error": null,
"id": "getblock.io"
}Response Parameters
Parameter
Type
Description
Result Object
Field
Type
Description
Use Cases
Error Handling
Error Code
Message
Description
Last updated
Was this helpful?