<p>The answer is to recompile the Litecoin daemon, making sure to call the <code>configure</code> script with the <code>--enable-wallet</code> option:</p>

<pre><code>./configure --enable-wallet
</code></pre>

<p>From there, <code>make</code> and <code>make-install</code> will give you a binary that has the <code>getnewaddress</code> RPC method available.</p>

<p>This reason behind this is that - instead of just disabling the methods around using the daemon as a wallet, or throwing an error in the case they're used without the <code>--enable-wallet</code> compilation option - the methods themselves are not compiled into the binary at all. This is likely due to the use of litecoind as a wallet requiring an extra library - the Berkeley DB library - and the path of least resistance being to not try to compile that section of the code at all in order to avoid issues with referencing the library, but that's conjecture.</p>

<p>This should also solve similar issues in other coins forked from the bitcoin source, and for bitcoin itself.</p>

CC BY-SA 3.0
2018-02-10T21:33:21.417Z
2018-02-11T15:50:22.880Z
2018-02-11T15:50:22.880Z
Marshall Conover
<p>After having compiled the Litecoin daemon found at:</p>

<pre><code>https://github.com/litecoin-project/litecoin.git
</code></pre>

<p>and set up a username and password, calling</p>

<pre><code>litecoin-cli -rpcuser=&lt;username&gt; -rpcpassword=&lt;password&gt; getnewaddress
</code></pre>

<p>returns the error "method not found" from the litecoin daemon <code>litecoind</code>.</p>

<litecoin><daemon>
Litecoind answers "getnewaddress" RPC request with "Method not found"
Marshall Conover
# Litecoind answers "getnewaddress" RPC request with "Method not found"

(Asked by: username_0 on 2018-02-10)

After having compiled the Litecoin daemon found at:

```
https://github.com/litecoin-project/litecoin.git

```

and set up a username and password, calling

```
litecoin-cli -rpcuser=<username> -rpcpassword=<password> getnewaddress

```

returns the error "method not found" from the litecoin daemon `litecoind`.

**Tags:** litecoin, daemon


---

## 1 answers

### Answer by username_0 on 2018-02-10. Score: 3 | Accepted answer

The answer is to recompile the Litecoin daemon, making sure to call the `configure` script with the `--enable-wallet` option:

```
./configure --enable-wallet

```

From there, `make` and `make-install` will give you a binary that has the `getnewaddress` RPC method available.

This reason behind this is that - instead of just disabling the methods around using the daemon as a wallet, or throwing an error in the case they're used without the `--enable-wallet` compilation option - the methods themselves are not compiled into the binary at all. This is likely due to the use of litecoind as a wallet requiring an extra library - the Berkeley DB library - and the path of least resistance being to not try to compile that section of the code at all in order to avoid issues with referencing the library, but that's conjecture.

This should also solve similar issues in other coins forked from the bitcoin source, and for bitcoin itself.


---

