Bitcoin RPC connection refused

Bitcoin RPC connection refused
$ curl --user username:password --data-binary '{"jsonrpc":2.0, "id":1, "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

response

Failed to connect to 127.0.0.1 port 8332: Connection refused

Here is my bitcoin.conf

listen=1
server=1
dbcache=50
daemon=1
testnet=1

rpcuser=username
rpcpassword=password
https://ift.tt/2xwp3VE

Comments

Popular posts from this blog

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

When mining with 2 computers, do I need to use 2 separate wallets addresses?