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

Address purpose field that has been been stored with wallet sending and receiving addresses since BIP70 payment protocol support was added in https&colon;&sol;&sol;github&period;com&sol;bitcoin&sol;bitcoin&sol;pull&sol;2539&period; This field is not currently used for any logic inside the wallet, but it is still shown in RPC and GUI interfaces and saved for new addresses&period; It is basically redundant with an address&apos;s IsMine() result&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class AddressPurpose : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `RECEIVE` 
| Address is used to receive funds&period;
| `SEND` 
| Address is used to send funds to another party&period;
| `REFUND` 
| Never set in current code may be present in older wallet databases
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/PurposeFromString.adoc[`PurposeFromString`]
| Parse an address purpose from its serialized string form&period;
| xref:wallet/PurposeToString.adoc[`PurposeToString`]
| Convert an address purpose to its serialized string form&period;
|===


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