[#ExternalSigner-SignTransaction]
= xref:ExternalSigner.adoc[ExternalSigner]::SignTransaction
:relfileprefix: ../
:mrdocs:

Sign PartiallySignedTransaction on the device&period; Calls `&lt;command&gt; &hyphen;&hyphen;stdin &hyphen;&hyphen;fingerprint &lt;fingerprint&gt; &hyphen;&hyphen;chain &lt;chain&gt;` and passes the `signtx` command and PSBT via stdin&period;

== Synopsis

Declared in `&lt;external&lowbar;signer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
SignTransaction(
    xref:PartiallySignedTransaction.adoc[PartiallySignedTransaction]& psbt,
    std::string& error);
----

== Return Value

true if the device signed the transaction successfully&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *psbt* [inout]
| PartiallySignedTransaction to be signed
| *error* [out]
| set to a human&hyphen;readable message when signing fails
|===


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