<p>I have been able to get bitcoind started by giving it the right data directory and configuration file.  I downloaded and ran rpcauth.py from <a href="https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py" rel="nofollow noreferrer">https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py</a></p>
<p>I am stumped as to what to do next.  I added the rpcauth= line to my bitcoin.conf file.  I have tried various combinations of rpcuser or rpcauth both in the bitcoin.conf file and on the bitcoin-cli command line.</p>
<p>I would like to make bitcoin-cli  getblocktemplate to work so I could better understand what gets returned when one asks for a block to mine.</p>
<p>TIA</p>

CC BY-SA 4.0
2022-10-28T21:58:40.497Z
In what way does it not work? What error are you getting?
Ava Chow
CC BY-SA 4.0
2022-10-31T20:18:01.477Z
The username/password combination is not valid.
MarkRLV
<mining-theory><bitcoin-cli>
Setup bitcoind and be able to make a call to GetBlockTemplate
MarkRLV
# Setup bitcoind and be able to make a call to GetBlockTemplate

(Asked by: username_0 on 2022-10-28)

I have been able to get bitcoind started by giving it the right data directory and configuration file. I downloaded and ran rpcauth.py from <https://github.com/bitcoin/bitcoin/blob/master/share/rpcauth/rpcauth.py>

I am stumped as to what to do next. I added the rpcauth= line to my bitcoin.conf file. I have tried various combinations of rpcuser or rpcauth both in the bitcoin.conf file and on the bitcoin-cli command line.

I would like to make bitcoin-cli getblocktemplate to work so I could better understand what gets returned when one asks for a block to mine.

TIA

**Tags:** mining-theory, bitcoin-cli

> **Comments:**
> **username_1**: In what way does it not work? What error are you getting?  
> **username_0**: The username/password combination is not valid.  

---

## 0 answers

