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

sendrawtransaction and txn-mempool-conflict

couldn't connect to server: EOF reached (code 1)