In bitcoin.conf, if the rpcuser/rpcpassword is specified, I can access the RPC via curl like this:

curl --data-binary '{"jsonrpc": "1.0", "id": "test", "method": "getblockchaininfo", "params": []}'  http://user:pass@

Now that the rpcuser/rpcpassword option has been deprecated in favor of the new rpcauth option:


How can the rpcauth string be used to authenticate curl access?

Thank you.

1 Answer 1


You can't, that's the point.

The rpcauth string is generated by the rpcauth tool, and contains a hash of your password. You authenticate exactly the same way: by providing the username and password. But you can't go back from rpcauth string to password.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.