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

Function MaybePushAddress

src/wallet/rpc/transactions.cpp:352–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352static void MaybePushAddress(UniValue & entry, const CTxDestination &dest)
353{
354 if (IsValidDestination(dest)) {
355 entry.pushKV("address", EncodeDestination(dest));
356 }
357}
358
359/**
360 * List transactions based on the given criteria.

Callers 1

transactions.cppFile · 0.85

Calls 3

IsValidDestinationFunction · 0.85
EncodeDestinationFunction · 0.85
pushKVMethod · 0.45

Tested by

no test coverage detected