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

Function DescribeWalletAddress

src/wallet/rpc/addresses.cpp:503–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501};
502
503static UniValue DescribeWalletAddress(const CWallet& wallet, const CTxDestination& dest)
504{
505 UniValue ret(UniValue::VOBJ);
506 UniValue detail = DescribeAddress(dest);
507 CScript script = GetScriptForDestination(dest);
508 std::unique_ptr<SigningProvider> provider = nullptr;
509 provider = wallet.GetSolvingProvider(script);
510 ret.pushKVs(detail);
511 ret.pushKVs(std::visit(DescribeWalletAddressVisitor(provider.get()), dest));
512 return ret;
513}
514
515class DescribeWalletBlindAddressVisitor
516{

Callers 1

getaddressinfoFunction · 0.85

Calls 6

DescribeAddressFunction · 0.85
GetScriptForDestinationFunction · 0.85
pushKVsMethod · 0.80
GetSolvingProviderMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected