[#ExternalSigner-SignTransaction] = xref:ExternalSigner.adoc[ExternalSigner]::SignTransaction :relfileprefix: ../ :mrdocs: Sign PartiallySignedTransaction on the device. Calls `<command> ‐‐stdin ‐‐fingerprint <fingerprint> ‐‐chain <chain>` and passes the `signtx` command and PSBT via stdin. == Synopsis Declared in `<external_signer.h>` [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. == Parameters [cols="1,4"] |=== | Name| Description | *psbt* [inout] | PartiallySignedTransaction to be signed | *error* [out] | set to a human‐readable message when signing fails |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#