1. uptime
$ bitcoin-core.cli -conf=/home/user04/dev/eve/bitcoin.conf uptime 263568
$ cat getUptimeByEve.js const Client = require('../src/index'); const config = require('./config'); const client = new Client(config.EveWallet); async function _uptime() { const uptime = await client.upTime(); console.log(uptime); } _uptime(); $node getUptimeByEve.js 263770
2. abortrescan
$ bitcoin-core.cli -conf=/home/user04/dev/eve/bitcoin.conf abortrescan false
$ cat abortrescanByEve.js const Client = require('../src/index'); const config = require('./config'); const client = new Client(config.EveWallet); async function _abortRescan() { const scan = await client.abortRescan(); console.log(scan); } _abortRescan(); $ node abortrescanByEve.js false
3. ping
– reuslt null
$ bitcoin-core.cli -conf=/home/user04/dev/akira/bitcoin.conf ping
4. getpeerinfo
$ bitcoin-core.cli -conf=/home/user04/dev/akira/bitcoin.conf getpeerinfo [ { "id": 0, "addr": "127.0.0.1:10011", "addrbind": "127.0.0.1:49136", "network": "not_publicly_routable", "services": "0000000000000409", "servicesnames": [ "NETWORK", "WITNESS", "NETWORK_LIMITED" ], "relaytxes": true, "lastsend": 1660534882, "lastrecv": 1660534882, "last_transaction": 0, "last_block": 0, "bytessent": 3551, "bytesrecv": 3579, "conntime": 1660530875, "timeoffset": -1, "pingtime": 0.000438, "minping": 0.000307, "version": 70016, "subver": "/Satoshi:23.0.0/", "inbound": false, "bip152_hb_to": false, "bip152_hb_from": false, "startingheight": 7286, "synced_headers": 7286, "synced_blocks": 7286, "inflight": [ ], "addr_relay_enabled": true, "addr_processed": 1, "addr_rate_limited": 0, "permissions": [ ], "minfeefilter": 0.00001000, "bytessent_per_msg": { "feefilter": 32, "getaddr": 24, "getheaders": 829, "headers": 106, "ping": 1120, "pong": 1152, "sendaddrv2": 24, "sendcmpct": 66, "sendheaders": 24, "verack": 24, "version": 126, "wtxidrelay": 24 }, "bytesrecv_per_msg": { "addrv2": 52, "feefilter": 32, "getheaders": 829, "headers": 106, "ping": 1152, "pong": 1120, "sendaddrv2": 24, "sendcmpct": 66, "sendheaders": 24, "verack": 24, "version": 126, "wtxidrelay": 24 }, "connection_type": "manual" } ]
5. getreceivedbyaddress
$ curl -u "${aliceAuth}" --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getreceivedbyaddress", "params": ["bcrt1qqtm00jv39e09uxgtrzwgvk2wyv0umq0tasnr8m"]}' -H 'content-type: text/plain;' http://127.0.0.1:10001/ {"result":2.33112800,"error":null,"id":"curltest"}
6. getpeerinfo
$ bitcoin-core.cli -rpcuser=akira -rpcpassword=7684fe25483abc2e2b3cbc2b44bce179\$5bb0e9047ded0d92c6418a518cea122f6e5e09fd908ca46880d008ec0f325df2 -rpcport=10007 getpeerinfo [ { "id": 0, "addr": "127.0.0.1:10011", "addrbind": "127.0.0.1:49136", "network": "not_publicly_routable", "services": "0000000000000409", "servicesnames": [ "NETWORK", "WITNESS", "NETWORK_LIMITED" ], "relaytxes": true, "lastsend": 1660562009, "lastrecv": 1660562009, "last_transaction": 0, "last_block": 0, "bytessent": 18015, "bytesrecv": 18095, "conntime": 1660530875, "timeoffset": -1, "pingtime": 0.000561, "minping": 0.000307, "version": 70016, "subver": "/Satoshi:23.0.0/", "inbound": false, "bip152_hb_to": false, "bip152_hb_from": false, "startingheight": 7286, "synced_headers": 7286, "synced_blocks": 7286, "inflight": [ ], "addr_relay_enabled": true, "addr_processed": 2, "addr_rate_limited": 0, "permissions": [ ], "minfeefilter": 0.00001000, "bytessent_per_msg": { "feefilter": 32, "getaddr": 24, "getheaders": 829, "headers": 106, "ping": 8352, "pong": 8384, "sendaddrv2": 24, "sendcmpct": 66, "sendheaders": 24, "verack": 24, "version": 126, "wtxidrelay": 24 }, "bytesrecv_per_msg": { "addrv2": 104, "feefilter": 32, "getheaders": 829, "headers": 106, "ping": 8384, "pong": 8352, "sendaddrv2": 24, "sendcmpct": 66, "sendheaders": 24, "verack": 24, "version": 126, "wtxidrelay": 24 }, "connection_type": "manual" } ]