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

Writes the address book label for an address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
WriteName(
    std::string const& strAddress,
    std::string const& strName);
----

== Return Value

true if the record was written&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *strAddress*
| The address the label applies to&period;
| *strName*
| The label to store&period;
|===


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