Can't use signrawtransaction in the new version #14645

issue jarven-zhang opened this issue on November 3, 2018
  1. jarven-zhang commented at 1:44 AM on November 3, 2018: none

    after I update the latest version of bitcoin core (0.17), I can't use "signrawtransaction " to signe my tx. my cmd is this

    bitcoin-cli -rpcuser=xxx -rpcpassword=xxx -rpcport=xxx signrawtransaction \
    02000000019ea1e1eb2b6d8fca57bb99e5747f2e3446b7aac64c1147f389c025d0af155a9e0000000000ffffffff02a00f00000000000017a914bee24fd1587112a9ab41b202fc2c01e1de59b47e87a87811000000000017a91477c56ac5820aaa6c667cc4856baad24e462a46748700000000
    

    the log is

    error code: -32
    error message:
    signrawtransaction was removed in v0.18.
    Clients should transition to using signrawtransactionwithkey and signrawtransactionwithwallet
    
  2. sipa commented at 1:45 AM on November 3, 2018: member

    Clients should transition to using signrawtransactionwithkey and signrawtransactionwithwallet

  3. jarven-zhang commented at 1:48 AM on November 3, 2018: none

    Clients should transition to using signrawtransactionwithkey and signrawtransactionwithwallet

    it's the new change, right? I mean , I can use "signrawtransaction" in 0.16

  4. sipa commented at 1:50 AM on November 3, 2018: member

    Yes, signrawtransaction was deprecated in 0.17, and is now removed for 0.18.

    In the current version, you need to use signrawtransactionwithkey or signrawtransactionwithwallet. Look up the documentation for those RPC calls, and decide which one you need instead.

  5. sipa closed this on Nov 3, 2018

  6. jarven-zhang commented at 2:00 AM on November 3, 2018: none

    Yes, signrawtransaction was deprecated in 0.17, and is now removed for 0.18.

    In the current version, you need to use signrawtransactionwithkey or signrawtransactionwithwallet. Look up the documentation for those RPC calls, and decide which one you need instead.

    Yes, signrawtransaction was deprecated in 0.17, and is now removed for 0.18.

    In the current version, you need to use signrawtransactionwithkey or signrawtransactionwithwallet. Look up the documentation for those RPC calls, and decide which one you need instead.

    Thanks !

  7. fanquake added the label RPC/REST/ZMQ on Nov 3, 2018
  8. fanquake added the label Questions and Help on Nov 3, 2018
  9. fanquake locked this on Nov 3, 2018

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me