<p>It looks like the new calls are not yet supported in btcClient.</p>

<p><a href="https://github.com/ruimarinho/bitcoin-core/issues/77" rel="nofollow noreferrer">https://github.com/ruimarinho/bitcoin-core/issues/77</a> refers generally to your issue.</p>

<p>v2.0.0 was released "a year ago" according to <a href="https://www.npmjs.com/package/bitcoin-core" rel="nofollow noreferrer">https://www.npmjs.com/package/bitcoin-core</a>; v0.17 bitcoind, which made the change, four months ago.</p>

<p>If you're just tinkering, you might consider downgrading your bitcoind until the library catches up.</p>

CC BY-SA 4.0
2019-02-01T00:23:19.450Z
OK, until then, I will use this flag in bitcoin.conf: deprecatedrpc=signrawtransaction
jfjobidon
CC BY-SA 4.0
2019-02-02T03:31:17.527Z
This is probably a sign that you should not be using this library-- it's un(der)maintained, ...
G. Maxwell
CC BY-SA 4.0
2019-02-01T00:04:42.577Z
2019-02-01T00:04:42.577Z
Alistair Mann
<p>I'm using npm bitcoin-core ^2.0.0 to get access to my bitcoind (v0.17.1 MAC)</p>

<p>My code:</p>

<pre><code>let signedRawTx = await btcClient.signRawTransaction(rawTx, [], [privateKey], 'ALL');
</code></pre>

<p>I get an error message telling me that signrawtransaction is deprecated, use signrawtransactionwithkey instead.</p>

<p>My problem: I tried to mixed uppercase letters like this:</p>

<pre><code>btcClient.signRawTransactionWithKey(...)
btcClient.signrawtransactionwithkey(...)
btcClient.signRawTransactionWithkey(...)
...
</code></pre>

<p>with always the same kind of error:</p>

<pre><code>signRawTransactionWithKey is not a function...
</code></pre>

<p>In my text editor, I can see all the available functions for btcClient, sign<strong>R</strong>aw<strong>T</strong>ransaction is in the list but nothing like signRawTransactionWithKey.
If I type <strong><em>help</em></strong> in the console of bitcoind, I can see signrawtransaction and signrawtransactionwithkey.</p>

<p>Any advice ?</p>

<bitcoin-core><signrawtransaction>
signrawtransaction is not a function on bitcoin core V0.17.1
jfjobidon
# signrawtransaction is not a function on bitcoin core V0.17.1

(Asked by: username_0 on 2019-01-31)

I'm using npm bitcoin-core ^2.0.0 to get access to my bitcoind (v0.17.1 MAC)

My code:

```
let signedRawTx = await btcClient.signRawTransaction(rawTx, [], [privateKey], 'ALL');

```

I get an error message telling me that signrawtransaction is deprecated, use signrawtransactionwithkey instead.

My problem: I tried to mixed uppercase letters like this:

```
btcClient.signRawTransactionWithKey(...)
btcClient.signrawtransactionwithkey(...)
btcClient.signRawTransactionWithkey(...)
...

```

with always the same kind of error:

```
signRawTransactionWithKey is not a function...

```

In my text editor, I can see all the available functions for btcClient, sign**R**aw**T**ransaction is in the list but nothing like signRawTransactionWithKey.
If I type ***help*** in the console of bitcoind, I can see signrawtransaction and signrawtransactionwithkey.

Any advice ?

**Tags:** bitcoin-core, signrawtransaction


---

## 1 answers

### Answer by username_1 on 2019-02-01. Score: 1 | Accepted answer

It looks like the new calls are not yet supported in btcClient.

<https://github.com/ruimarinho/bitcoin-core/issues/77> refers generally to your issue.

v2.0.0 was released "a year ago" according to <https://www.npmjs.com/package/bitcoin-core>; v0.17 bitcoind, which made the change, four months ago.

If you're just tinkering, you might consider downgrading your bitcoind until the library catches up.

> **Comments:**
> **username_0**: OK, until then, I will use this flag in bitcoin.conf: deprecatedrpc=signrawtransaction  
> **username_2**: This is probably a sign that you should not be using this library-- it's un(der)maintained, ...  

---

