[#wallet-CWallet-SignTransaction-09]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SignTransaction
:relfileprefix: ../../
:mrdocs:

Fetch the inputs and sign with SIGHASH&lowbar;ALL&period;

== Synopsis

Declared in `&lt;wallet&sol;wallet&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde05698), requires&lowbar;capability(0x7f95061a83d8), requires&lowbar;capability(0x7f94f2b78ee8), requires&lowbar;capability(0x7f94f0cf7b78), requires&lowbar;capability(0x7f94fee3a568)&rsqb;&rsqb;
bool
SignTransaction(xref:CMutableTransaction.adoc[CMutableTransaction]& tx) const;
----

== Return Value

true if all inputs were signed&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction to sign in place&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
