Control RPCs
getmemoryinfo
Returns an object containing information about memory usage.
Method: POST
https://btc-testnet.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getmemoryinfo",
"params": []
}
Example response: 200
{
"result": {
"locked": {
"used": 240,
"free": 65296,
"total": 65536,
"locked": 65536,
"chunks_used": 1,
"chunks_free": 1
}
},
"error": null,
"id": "curltest"
}
getrpcinfo
Returns details of the RPC server.
Method: POST
https://btc-testnet.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "getrpcinfo",
"params": []
}
Example response: 200
{
"result": {
"active_commands": [
{
"method": "getrpcinfo",
"duration": 25
}
],
"logpath": "/coin/data/testnet3/debug.log"
},
"error": null,
"id": "curltest"
}
logging
Gets and sets the logging configuration.
When called without an argument, returns the list of categories with status that are currently being debug logged or not.
When called with arguments, adds or removes categories from debug logging and return the lists above.
The arguments are evaluated in order “include”, “exclude”.
If an item is both included and excluded, it will thus end up being excluded.
The valid logging categories are: net, tor, mempool, http, bench, zmq, walletdb, rpc, estimatefee, addrman, selectcoins, reindex, cmpctblock, rand, prune, proxy, mempoolrej, libevent, coindb, qt, leveldb, validation In addition, the following are available as category names with special meanings:
“all”, “1” : represent all logging categories.
“none”, “0” : even if other logging categories are specified, ignore all of them.
Method: POST
https://btc-testnet.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "logging",
"params": [
[
"all"
],
[
"libevent"
]
]
}
Example response: 200
{
"result": {
"addrman": true,
"bench": true,
"blockstorage": true,
"cmpctblock": true,
"coindb": true,
"estimatefee": true,
"http": true,
"i2p": true,
"ipc": true,
"leveldb": true,
"libevent": false,
"mempool": true,
"mempoolrej": true,
"net": true,
"proxy": true,
"prune": true,
"qt": true,
"rand": true,
"reindex": true,
"rpc": true,
"scan": true,
"selectcoins": true,
"tor": true,
"txpackages": true,
"txreconciliation": true,
"util": true,
"validation": true,
"walletdb": true,
"zmq": true
},
"error": null,
"id": "curltest"
}
uptime
Returns the total uptime of the server.
Method: POST
https://btc-testnet.nownodes.io
Example body (raw)
{
"jsonrpc": "1.0",
"id": "curltest",
"method": "uptime",
"params": []
}
Example response: 200
{
"result": 613980,
"error": null,
"id": "curltest"
}
getdescriptoractivity (???)
Last updated