[#GetTransactionSigOpCost]
= GetTransactionSigOpCost
:mrdocs:

Compute total signature operation cost of a transaction&period;

== Synopsis

Declared in `&lt;consensus&sol;tx&lowbar;verify&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int64&lowbar;t
GetTransactionSigOpCost(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:CCoinsViewCache.adoc[CCoinsViewCache] const& inputs,
    xref:script_verify_flags.adoc[script&lowbar;verify&lowbar;flags] flags);
----

== Return Value

Total signature operation cost of tx

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx* [in]
| Transaction for which we are computing the cost
| *inputs* [in]
| Map of previous transactions that have outputs we&apos;re spending
| *flags* [in]
| Script verification flags
|===


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