Hi There,
This is my bitcoin.conf:
[regtest]
rpcuser=bitcoin
rpcpassword=talk
Running the below command gives me the suitable curl equivalent:
./bitcoin-cli -regtest help getbalances
Examples:
> bitcoin-cli getbalances
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getbalances", "params": []}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
Now, when I run the above curl command, I get a non response like this:
~/Desktop/bitcoin-0.21.1/bin curl --user bitcoin --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getnewaddress", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:18443
Enter host password for user 'bitcoin':
~/Desktop/bitcoin-0.21.1/bin
Any idea on what is causing the refusal of the connection? I am running Mac and can see port 18443 taking connections
Thanks again.