bitcoind – What is the default username and password for bitcoin the rpc deamon?


What is the default username and default password for the bitcoin rpc?

I have a bitcoin daemon running, but there is no bitcoin.conf file. If I attempt to query the RPC, I get a 401 Unauthorized response

[[email protected] .bitcoin]# curl -i --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' -H 'content-type: text/plain;'
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="jsonrpc"
Date: Wed, 07 Sep 2021 01:23:45 GMT
Content-Length: 0
Content-Type: text/html; charset=ISO-8859-1

[[email protected] .bitcoin]# 

What is the username and password that bitcoin defaults to using?

Source link

Leave a reply