[#wallet-WalletBatch-WriteWtxVariant]
= xref:wallet.adoc[wallet]::xref:wallet/WalletBatch.adoc[WalletBatch]::WriteWtxVariant
:relfileprefix: ../../
:mrdocs:

Writes a wallet transaction variant record&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
WriteWtxVariant(
    xref:Txid.adoc[Txid] const& txid,
    xref:CTransactionRef.adoc[CTransactionRef] const& tx);
----

== Return Value

true if the record was written&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txid*
| The txid of the transaction&period;
| *tx*
| The transaction to store&period;
|===


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