MCPcopy Create free account
hub / github.com/ElementsProject/elements / AddressBookDataToJSON

Function AddressBookDataToJSON

src/wallet/rpc/addresses.cpp:764–772  ·  view source on GitHub ↗

Convert CAddressBookData to JSON record. */

Source from the content-addressed store, hash-verified

762
763/** Convert CAddressBookData to JSON record. */
764static UniValue AddressBookDataToJSON(const CAddressBookData& data, const bool verbose)
765{
766 UniValue ret(UniValue::VOBJ);
767 if (verbose) {
768 ret.pushKV("name", data.GetLabel());
769 }
770 ret.pushKV("purpose", data.purpose);
771 return ret;
772}
773
774RPCHelpMan getaddressesbylabel()
775{

Callers 1

getaddressesbylabelFunction · 0.85

Calls 2

GetLabelMethod · 0.80
pushKVMethod · 0.45

Tested by

no test coverage detected