bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/signrawtransactionwithwallet
Wallet

signrawtransactionwithwallet

Sign inputs for raw transaction (serialized, hex-encoded) using wallet keys.

Parameters

hexstringstringREQUIRED
The transaction hex string
prevtxsarrayoptional
Array of previous dependent transaction outputs
sighashtypestringoptional
Signature hash type. Default: "ALL"

Returns

objectObject with hex, complete, and errors

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"signrawtransactionwithwallet","params":["hex"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

{
  "hex": "0200000001...",
  "complete": true
}
← Previous
signmessage
Next →
simulaterawtransaction

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗