diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index bf015bea2b..6c4c27cc3a 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -203,7 +203,7 @@ UniValue combineblocksigs(const UniValue& params, bool fHelp) " \"complete\": n (numeric) if block is complete \n" "}\n" "\nExamples:\n" - + HelpExampleCli("combineblocksigs", "") + + HelpExampleCli("combineblocksigs", " [\"signature1\", \"signature2\", ...]") ); CBlock block; diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index ec92c22c00..3583af7f64 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -665,6 +665,8 @@ UniValue dumpblindingkey(const UniValue& params, bool fHelp) "\nDumps the private blinding key for a CT address in hex." "\nArguments:\n" "1. \"address\" (string, required) The CT address\n" + "\nExample:\n" + + HelpExampleCli("dumpblindingkey", "\"my address\"") ); LOCK2(cs_main, pwalletMain->cs_wallet); @@ -712,6 +714,8 @@ UniValue importblindingkey(const UniValue& params, bool fHelp) "\nArguments:\n" "1. \"address\" (string, required) The CT address\n" "2. \"hexkey\" (string, required) The blinding key in hex\n" + "\nExample:\n" + + HelpExampleCli("importblindingkey", "\"my blinded CT address\" ") ); LOCK2(cs_main, pwalletMain->cs_wallet); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index f3027a36d2..4a75d82a63 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -452,6 +452,7 @@ UniValue sendtoaddress(const UniValue& params, bool fHelp) + HelpExampleCli("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\" 0.1") + HelpExampleCli("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\" 0.1 \"donation\" \"seans outpost\"") + HelpExampleCli("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\" 0.1 \"\" \"\" true") + + HelpExampleCli("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\" 0.1 \"\" \"\" true \"my asset\"") + HelpExampleRpc("sendtoaddress", "\"1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd\", 0.1, \"donation\", \"seans outpost\"") ); @@ -2785,7 +2786,7 @@ UniValue signblock(const UniValue& params, bool fHelp) "\nResult\n" " sig (hex) The signature\n" "\nExamples:\n" - + HelpExampleCli("getnewblockhex", "") + + HelpExampleCli("signblock", "0000002018c6f2f913f9902aeab...5ca501f77be96de63f609010000000000000000015100000000") ); CBlock block; @@ -3214,6 +3215,8 @@ UniValue generateasset(const UniValue& params, bool fHelp) "1. \"label\" (string, required) Label for newly generated asset.\n" "2. \"amount\" (numeric, required) Number of asset to generate.\n" "\nExamples:\n" + + HelpExampleCli("generateasset", "\"my asset\" 10" ) + + HelpExampleRpc("generateasset", "\"my asset\" 10" ) ); RPCTypeCheck(params, boost::assign::list_of(UniValue::VSTR)(UniValue::VNUM));