@@ -2296,6 +2296,9 @@ class CoinsViewScanReserver
2296
2296
2297
2297
static RPCHelpMan scantxoutset ()
2298
2298
{
2299
+ // scriptPubKey corresponding to mainnet address 12cbQLTFMXRnSzktFkuoG3eHoMeFtpTu3S
2300
+ const std::string EXAMPLE_DESCRIPTOR_RAW = " raw(76a91411b366edfc0a8b66feebae5c2e25a7b6a5d1cf3188ac)#fm24fxxy" ;
2301
+
2299
2302
return RPCHelpMan{" scantxoutset" ,
2300
2303
" \n Scans the unspent transaction output set for entries that match certain output descriptors.\n "
2301
2304
" Examples of output descriptors are:\n "
@@ -2353,7 +2356,14 @@ static RPCHelpMan scantxoutset()
2353
2356
{RPCResult::Type::STR_AMOUNT, " total_amount" , " The total amount of all found unspent outputs in " + CURRENCY_UNIT},
2354
2357
}},
2355
2358
},
2356
- RPCExamples{" " },
2359
+ RPCExamples{
2360
+ HelpExampleCli (" scantxoutset" , " start \' [\" " + EXAMPLE_DESCRIPTOR_RAW + " \" ]\' " ) +
2361
+ HelpExampleCli (" scantxoutset" , " status" ) +
2362
+ HelpExampleCli (" scantxoutset" , " abort" ) +
2363
+ HelpExampleRpc (" scantxoutset" , " \" start\" , [\" " + EXAMPLE_DESCRIPTOR_RAW + " \" ]" ) +
2364
+ HelpExampleRpc (" scantxoutset" , " \" status\" " ) +
2365
+ HelpExampleRpc (" scantxoutset" , " \" abort\" " )
2366
+ },
2357
2367
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
2358
2368
{
2359
2369
RPCTypeCheck (request.params , {UniValue::VSTR, UniValue::VARR});
0 commit comments