Browse Source

Fixed wallet rpc help messages.

zmq
Just Wonder 5 years ago
parent
commit
69de9ed62a
  1. 17
      src/wallet/rpcwallet.cpp

17
src/wallet/rpcwallet.cpp

@ -1112,13 +1112,13 @@ UniValue sendmany(const JSONRPCRequest& request)
" the number of addresses.\n" " the number of addresses.\n"
"\nExamples:\n" "\nExamples:\n"
"\nSend two amounts to two different addresses:\n" "\nSend two amounts to two different addresses:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\":0.01,\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\":0.02}\"") + + HelpExampleCli("sendmany", "\"\" \"{\\\"VPV6zKqt3gBufa1V4jdPc9WMuHz6GYufTS\\\":0.01,\\\"VCGLU9RdqoQaFo19SziUzeke9pcDBomU2X\\\":0.02}\"") +
"\nSend two amounts to two different addresses setting the confirmation and comment:\n" "\nSend two amounts to two different addresses setting the confirmation and comment:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\":0.01,\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\":0.02}\" 6 \"testing\"") + + HelpExampleCli("sendmany", "\"\" \"{\\\"VPV6zKqt3gBufa1V4jdPc9WMuHz6GYufTS\\\":0.01,\\\"VCGLU9RdqoQaFo19SziUzeke9pcDBomU2X\\\":0.02}\" 6 \"testing\"") +
"\nSend two amounts to two different addresses, subtract fee from amount:\n" "\nSend two amounts to two different addresses, subtract fee from amount:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\":0.01,\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\":0.02}\" 1 \"\" \"[\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\",\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\"]\"") + + HelpExampleCli("sendmany", "\"\" \"{\\\"VPV6zKqt3gBufa1V4jdPc9WMuHz6GYufTS\\\":0.01,\\\"VCGLU9RdqoQaFo19SziUzeke9pcDBomU2X\\\":0.02}\" 1 \"\" \"[\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\",\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\"]\"") +
"\nAs a json rpc call\n" "\nAs a json rpc call\n"
+ HelpExampleRpc("sendmany", "\"\", {\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\":0.01,\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\":0.02}, 6, \"testing\"") + HelpExampleRpc("sendmany", "\"\", {\"VPV6zKqt3gBufa1V4jdPc9WMuHz6GYufTS\":0.01,\"VCGLU9RdqoQaFo19SziUzeke9pcDBomU2X\":0.02}, 6, \"testing\"")
); );
ObserveSafeMode(); ObserveSafeMode();
@ -1250,20 +1250,13 @@ UniValue transfer(const JSONRPCRequest& request)
" [{\n" " [{\n"
" \"address\":address (string) The kevacoin address\n" " \"address\":address (string) The kevacoin address\n"
" \"amount\":amount (numeric) The numeric amount in atomic unut\n" " \"amount\":amount (numeric) The numeric amount in atomic unut\n"
" ,...\n"
" }, ...]\n" " }, ...]\n"
"\nResult:\n" "\nResult:\n"
"\"txid\" (string) The transaction id for the send. Only 1 transaction is created regardless of \n" "\"txid\" (string) The transaction id for the send. Only 1 transaction is created regardless of \n"
" the number of addresses.\n" " the number of addresses.\n"
"\nExamples:\n" "\nExamples:\n"
"\nSend two amounts to two different addresses:\n" "\nSend two amounts to two different addresses:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\":0.01,\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\":0.02}\"") + + HelpExampleCli("transfer", "\"\" [ \"{\\\"VPV6zKqt3gBufa1V4jdPc9WMuHz6GYufTS\\\":0.01},\\{\"VCGLU9RdqoQaFo19SziUzeke9pcDBomU2X\\\":0.02} ]\"")
"\nSend two amounts to two different addresses setting the confirmation and comment:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\":0.01,\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\":0.02}\" 6 \"testing\"") +
"\nSend two amounts to two different addresses, subtract fee from amount:\n"
+ HelpExampleCli("sendmany", "\"\" \"{\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\":0.01,\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\":0.02}\" 1 \"\" \"[\\\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\\\",\\\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\\\"]\"") +
"\nAs a json rpc call\n"
+ HelpExampleRpc("sendmany", "\"\", {\"LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2\":0.01,\"LbhhnrHHVFP1eUjP1tdNIYeEVsNHfN9FCw\":0.02}, 6, \"testing\"")
); );
ObserveSafeMode(); ObserveSafeMode();

Loading…
Cancel
Save