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

Write the given `client&lowbar;version` to m&lowbar;batch, indicating the last version of client software to load this wallet&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
WriteVersion(int client&lowbar;version);
----

== Return Value

A bool indicating whether or not the write succeeded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *client&lowbar;version* [in]
| `CLIENT&lowbar;VERSION` outside of test code&period;
|===


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