# Sign raw transaction Sign inputs for raw transaction (serialized, hex-encoded). The second optional argument (may be null) is an array of previous transaction outputs that this transaction depends on but may not yet be in the block chain. The third optional argument (may be null) is an array of base58-encoded private keys that, if given, will be the only keys used to sign the transaction. Endpoint: GET /daemon/signrawtransaction Version: 6.6.1 Security: ZelID ## Query parameters: - `hexstring` (string, required) Hex string of raw transaction Example: "0400008085202f8901ab719872dfea1b4f594049722a92efafa4695322d2c08654aafe98c6546066360000000000ffffffff0140420f00000000001976a9142e5db3157a9783c6208019323f2c3a02610826a988ac00000000a60a09000000000000000000000000" - `prevtxs` (array) An json array of previous dependent transaction outputs (json array of json objects, or null if none provided). List of objects key/value pairs in order: - :`voutscriptPubKeyredeemScriptamount` - `privatekeys` (array) A json array of base58-encoded private keys for signing (json array of strings, or null if none provided). - `sighashtype` (string) The signature hash type. Must be one of the available values listed. Enum: "ALL", "NONE", "SINGLE", "ALL|ANYONECANPAY", "NONE|ANYONECANPAY", "SINGLE|ANYONECANPAY" - `branchid` (string) The hex representation of the consensus branch id to sign with. This can be used to force signing with consensus rules that are ahead of the node's current height. ## Response 200 fields (application/json): - `status` (string) Explanation of status Enum: "success", "error" - `data` (object) - `data.hex` (string) The hex-encoded raw transaction with signatures - `data.complete` (boolean) If the transaction has a complete set of signatures - `data.errors` (object) Script verification errors (if there are any) - `data.errors.txid` (string) The hash of the referenced, previous transaction - `data.errors.vout` (integer) The index of the output to spent and used as input - `data.errors.scriptSig` (string) The hex-encoded signature script - `data.errors.sequence` (integer) Script sequence number - `data.errors.error` (string) Verification or signing error related to the input