HomePhabricator

RPC: show script verification errors in "signrawtransaction" result
8ac2a4e17884Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

RPC: show script verification errors in "signrawtransaction" result

If there are any script verification errors, when using "signrawtransaction", they are shown in the RPC result:

// ...

Result:
{
  "hex" : "value",           (string) The hex-encoded raw transaction with signature(s)
  "complete" : true|false,   (boolean) If the transaction has a complete set of signatures
  "errors" : [                 (json array of objects) Script verification errors (if there are any)
    {
      "txid" : "hash",           (string) The hash of the referenced, previous transaction
      "vout" : n,                (numeric) The index of the output to spent and used as input
      "scriptSig" : "hex",       (string) The hex-encoded signature script
      "sequence" : n,            (numeric) Script sequence number
      "error" : "text"           (string) Verification or signing error related to the input
    }
    ,...
  ]
}

Details

Provenance
dexX7Authored on Mar 22 2015, 18:07
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGINGf0c4281f845e: Merge pull request #6105
Branches
Unknown
Tags
Unknown

Event Timeline