[#wallet-CWallet-SetAddressReceiveRequest]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::SetAddressReceiveRequest
:relfileprefix: ../../
:mrdocs:

Store or update a receive request for a destination&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fde06358), requires&lowbar;capability(0x7f95061a9098), requires&lowbar;capability(0x7f94f2b79ba8), requires&lowbar;capability(0x7f94f0cf8838), requires&lowbar;capability(0x7f94fee3b228)&rsqb;&rsqb;
bool
SetAddressReceiveRequest(
    xref:wallet/WalletBatch.adoc[WalletBatch]& batch,
    xref:CTxDestination.adoc[CTxDestination] const& dest,
    std::string const& id,
    std::string const& value);
----

== Return Value

true if the request was written&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *batch*
| The database batch to write through&period;
| *dest*
| The destination the request belongs to&period;
| *id*
| The identifier of the receive request&period;
| *value*
| The serialized receive request data&period;
|===


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