[#wallet-CWallet-SignTransaction-06] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SignTransaction :relfileprefix: ../../ :mrdocs: `SignTransaction` overloads == Synopses Declared in `<wallet/wallet.h>` Fetch the inputs and sign with SIGHASH_ALL. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1e598be8), requires_capability(0x7f2e11aa99a8), requires_capability(0x7f2e169ff798), requires_capability(0x7f2e15f2ec38), requires_capability(0x7f2e12c6d8c8)]] bool xref:wallet/CWallet/SignTransaction-09.adoc[SignTransaction](xref:CMutableTransaction.adoc[CMutableTransaction]& tx) const; ---- [.small]#xref:wallet/CWallet/SignTransaction-09.adoc[_» more..._]# Sign the tx given the input coins and sighash. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:wallet/CWallet/SignTransaction-04.adoc[SignTransaction]( xref:CMutableTransaction.adoc[CMutableTransaction]& tx, std::map<COutPoint, Coin> const& coins, int sighash, std::map<int, bilingual_str>& input_errors) const; ---- [.small]#xref:wallet/CWallet/SignTransaction-04.adoc[_» more..._]# == Return Value true if all inputs were signed. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction to sign in place. | *coins* | The input coins spent by the transaction. | *sighash* | The signature hash type to use. | *input_errors* | Set to per‐input error messages for inputs that fail. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#