signrawtransaction is not a function on bitcoin core V0.17.1

signrawtransaction is not a function on bitcoin core V0.17.1

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, signRawTransaction 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 ?

http://bit.ly/2Bf1PT6

Comments

Popular posts from this blog

bitcoin node: what is the difference between simnet and regtest?

How to check if Electrum is masking my IP with the Tor proxy?

Need help to recover blpckchain.info wallet, my wife forgot her password and the brute force with btcrecover is not catching the password