fix help text for listunspent asset filter

This commit is contained in:
Gregory Sanders 2017-10-16 14:05:01 +02:00
parent f372a0164f
commit 4ac6a671e9

View file

@ -2716,7 +2716,7 @@ UniValue listunspent(const JSONRPCRequest& request)
" because they come from unconfirmed untrusted transactions or unconfirmed\n" " because they come from unconfirmed untrusted transactions or unconfirmed\n"
" replacement transactions (cases where we are less sure that a conflicting\n" " replacement transactions (cases where we are less sure that a conflicting\n"
" transaction won't be mined).\n" " transaction won't be mined).\n"
"5. \"asset\" (string, optional, default=bitcoin) The hex asset id or label to filter for. \"*\" is used to list all results.\n" "5. \"asset\" (string, optional, default=all) The hex asset id or label to filter for.\n"
"[ (array of json object)\n" "[ (array of json object)\n"
" {\n" " {\n"
" \"txid\": \"txid\", (string) the transaction id \n" " \"txid\": \"txid\", (string) the transaction id \n"
@ -2743,7 +2743,6 @@ UniValue listunspent(const JSONRPCRequest& request)
+ HelpExampleCli("listunspent", "") + HelpExampleCli("listunspent", "")
+ HelpExampleCli("listunspent", "6 9999999 \"[\\\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\\\",\\\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\\\"]\"") + HelpExampleCli("listunspent", "6 9999999 \"[\\\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\\\",\\\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\\\"]\"")
+ HelpExampleCli("listunspent", "6 9999999 \"[]\" \"myasset\"") + HelpExampleCli("listunspent", "6 9999999 \"[]\" \"myasset\"")
+ HelpExampleCli("listunspent", "6 9999999 \"[]\" \"*\"")
+ HelpExampleRpc("listunspent", "6, 9999999 \"[\\\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\\\",\\\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\\\"]\"") + HelpExampleRpc("listunspent", "6, 9999999 \"[\\\"1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\\\",\\\"1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP\\\"]\"")
); );