| 501 | }; |
| 502 | |
| 503 | static 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 | |
| 515 | class DescribeWalletBlindAddressVisitor |
| 516 | { |
no test coverage detected