bitcoind – Learn how to entry bitcoin server’s RPC interface remotely?

0
95


I’m operating a bitcoin daemon (launched through plist file) on MacOS with these parameters:

  • -server (to simply accept command line and JSON-RPC instructions)
  • -daemon (to run within the background as a daemon and settle for instructions)
  • -txindex=1 (I want to keep up a full transaction index for testing functions)

Each my bitcoin.conf and settings.json recordsdata are empty, and I need to use the random cookie authentication.

The node is operating advantageous, has a neighborhood deal with 192.168.83.33, generates a .cookie file, and is definitely linked to 10 friends on tcp4 port 8333.

I wish to check the JSON-RPC API through HTTP (from one other laptop in the identical native internet) with the instance command described within the bitcoin wiki:

curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "technique": "getblockchaininfo", "params": [] }' -H 'content-type: textual content/plain;' http://192.168.83.33:8333/

However I’m receiving simply empty replies (curl: (52) Empty reply from server), even after I strive from the identical node (on localhost deal with 127.0.0.1:8333)

Since I need to depend on random cookie authentication, I didn’t set any rpcuser. Do I have to go the cookie file within the HTTP header (through curl’s –cookie parameter)?

Bonus query: How can I arrange a number of peer I wish to join (alongside or as a substitute of the random choose pool)?

LEAVE A REPLY

Please enter your comment!
Please enter your name here