Search…
Nodes Usage
To access a node, you will need to use the IP address which you can obtain via bcl nodes list or bcl nodes info.
You will also need to generate a client token which you can get with:
bcl client-token
From there you may access the REST or RPC interfaces (described in the Technical Reference) using curl or any other HTTP client.

REST

curl -k -X GET \
--user <nodeUser>:<nodePass> \
https://<ip-address>:8332/rest/chaininfo.json

JSON RPC

curl -k -X POST \
--user <nodeUser>:<nodePass> \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' \
https://<ip-address>:8332/
Copy link
On this page
REST
JSON RPC