[#GetVirtualTransactionSize-01]
= GetVirtualTransactionSize
:mrdocs:

Compute the virtual size of a transaction, accounting for sigop cost&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int64&lowbar;t
GetVirtualTransactionSize(
    xref:CTransaction.adoc[CTransaction] const& tx,
    int64&lowbar;t nSigOpCost,
    unsigned int bytes&lowbar;per&lowbar;sigop);
----

== Return Value

Virtual transaction size in vB&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Transaction to measure&period;
| *nSigOpCost*
| Signature operation cost of the transaction&period;
| *bytes&lowbar;per&lowbar;sigop*
| Bytes charged per signature operation&period;
|===


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