Sign the CMutableTransaction
Declared in <script/sign.h>
bool
SignTransaction(
CMutableTransaction& mtx,
SigningProvider const* provider,
std::map<COutPoint, Coin> const& coins,
SignOptions const& options,
std::map<int, bilingual_str>& input_errors);
True if every input was signed successfully.
| Name | Description |
|---|---|
| mtx | The transaction to sign in place. |
| provider | The source of keys and scripts used to sign. |
| coins | The outputs spent by the transaction, keyed by outpoint. |
| options | Options controlling how each input is signed. |
| input_errors | Filled with per-input signing errors, keyed by index. |