|
|
@ -12,7 +12,7 @@ |
|
|
|
#include "net.h" |
|
|
|
#include "net.h" |
|
|
|
#include "netbase.h" |
|
|
|
#include "netbase.h" |
|
|
|
#include "policy/rbf.h" |
|
|
|
#include "policy/rbf.h" |
|
|
|
#include "rpcserver.h" |
|
|
|
#include "rpc/server.h" |
|
|
|
#include "timedata.h" |
|
|
|
#include "timedata.h" |
|
|
|
#include "util.h" |
|
|
|
#include "util.h" |
|
|
|
#include "utilmoneystr.h" |
|
|
|
#include "utilmoneystr.h" |
|
|
@ -110,7 +110,7 @@ UniValue getnewaddress(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 1) |
|
|
|
if (fHelp || params.size() > 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getnewaddress ( \"account\" )\n" |
|
|
|
"getnewaddress ( \"account\" )\n" |
|
|
@ -189,7 +189,7 @@ UniValue getaccountaddress(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getaccountaddress \"account\"\n" |
|
|
|
"getaccountaddress \"account\"\n" |
|
|
@ -221,7 +221,7 @@ UniValue getrawchangeaddress(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 1) |
|
|
|
if (fHelp || params.size() > 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getrawchangeaddress\n" |
|
|
|
"getrawchangeaddress\n" |
|
|
@ -256,7 +256,7 @@ UniValue setaccount(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"setaccount \"bitcoinaddress\" \"account\"\n" |
|
|
|
"setaccount \"bitcoinaddress\" \"account\"\n" |
|
|
@ -302,7 +302,7 @@ UniValue getaccount(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getaccount \"bitcoinaddress\"\n" |
|
|
|
"getaccount \"bitcoinaddress\"\n" |
|
|
@ -334,7 +334,7 @@ UniValue getaddressesbyaccount(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getaddressesbyaccount \"account\"\n" |
|
|
|
"getaddressesbyaccount \"account\"\n" |
|
|
@ -402,7 +402,7 @@ UniValue sendtoaddress(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 2 || params.size() > 5) |
|
|
|
if (fHelp || params.size() < 2 || params.size() > 5) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"sendtoaddress \"bitcoinaddress\" amount ( \"comment\" \"comment-to\" subtractfeefromamount )\n" |
|
|
|
"sendtoaddress \"bitcoinaddress\" amount ( \"comment\" \"comment-to\" subtractfeefromamount )\n" |
|
|
@ -460,7 +460,7 @@ UniValue listaddressgroupings(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp) |
|
|
|
if (fHelp) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listaddressgroupings\n" |
|
|
|
"listaddressgroupings\n" |
|
|
@ -511,7 +511,7 @@ UniValue signmessage(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() != 2) |
|
|
|
if (fHelp || params.size() != 2) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"signmessage \"bitcoinaddress\" \"message\"\n" |
|
|
|
"signmessage \"bitcoinaddress\" \"message\"\n" |
|
|
@ -567,7 +567,7 @@ UniValue getreceivedbyaddress(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getreceivedbyaddress \"bitcoinaddress\" ( minconf )\n" |
|
|
|
"getreceivedbyaddress \"bitcoinaddress\" ( minconf )\n" |
|
|
@ -625,7 +625,7 @@ UniValue getreceivedbyaccount(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getreceivedbyaccount \"account\" ( minconf )\n" |
|
|
|
"getreceivedbyaccount \"account\" ( minconf )\n" |
|
|
@ -714,7 +714,7 @@ UniValue getbalance(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getbalance ( \"account\" minconf includeWatchonly )\n" |
|
|
|
"getbalance ( \"account\" minconf includeWatchonly )\n" |
|
|
@ -789,7 +789,7 @@ UniValue getunconfirmedbalance(const UniValue ¶ms, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 0) |
|
|
|
if (fHelp || params.size() > 0) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getunconfirmedbalance\n" |
|
|
|
"getunconfirmedbalance\n" |
|
|
@ -805,7 +805,7 @@ UniValue movecmd(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 3 || params.size() > 5) |
|
|
|
if (fHelp || params.size() < 3 || params.size() > 5) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"move \"fromaccount\" \"toaccount\" amount ( minconf \"comment\" )\n" |
|
|
|
"move \"fromaccount\" \"toaccount\" amount ( minconf \"comment\" )\n" |
|
|
@ -878,7 +878,7 @@ UniValue sendfrom(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 3 || params.size() > 6) |
|
|
|
if (fHelp || params.size() < 3 || params.size() > 6) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"sendfrom \"fromaccount\" \"tobitcoinaddress\" amount ( minconf \"comment\" \"comment-to\" )\n" |
|
|
|
"sendfrom \"fromaccount\" \"tobitcoinaddress\" amount ( minconf \"comment\" \"comment-to\" )\n" |
|
|
@ -942,7 +942,7 @@ UniValue sendmany(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 2 || params.size() > 5) |
|
|
|
if (fHelp || params.size() < 2 || params.size() > 5) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"sendmany \"fromaccount\" {\"address\":amount,...} ( minconf \"comment\" [\"address\",...] )\n" |
|
|
|
"sendmany \"fromaccount\" {\"address\":amount,...} ( minconf \"comment\" [\"address\",...] )\n" |
|
|
@ -1056,7 +1056,7 @@ UniValue addmultisigaddress(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 2 || params.size() > 3) |
|
|
|
if (fHelp || params.size() < 2 || params.size() > 3) |
|
|
|
{ |
|
|
|
{ |
|
|
|
string msg = "addmultisigaddress nrequired [\"key\",...] ( \"account\" )\n" |
|
|
|
string msg = "addmultisigaddress nrequired [\"key\",...] ( \"account\" )\n" |
|
|
@ -1239,7 +1239,7 @@ UniValue listreceivedbyaddress(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listreceivedbyaddress ( minconf includeempty includeWatchonly)\n" |
|
|
|
"listreceivedbyaddress ( minconf includeempty includeWatchonly)\n" |
|
|
@ -1277,7 +1277,7 @@ UniValue listreceivedbyaccount(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listreceivedbyaccount ( minconf includeempty includeWatchonly)\n" |
|
|
|
"listreceivedbyaccount ( minconf includeempty includeWatchonly)\n" |
|
|
@ -1412,7 +1412,7 @@ UniValue listtransactions(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 4) |
|
|
|
if (fHelp || params.size() > 4) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listtransactions ( \"account\" count from includeWatchonly)\n" |
|
|
|
"listtransactions ( \"account\" count from includeWatchonly)\n" |
|
|
@ -1538,7 +1538,7 @@ UniValue listaccounts(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 2) |
|
|
|
if (fHelp || params.size() > 2) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listaccounts ( minconf includeWatchonly)\n" |
|
|
|
"listaccounts ( minconf includeWatchonly)\n" |
|
|
@ -1617,7 +1617,7 @@ UniValue listsinceblock(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp) |
|
|
|
if (fHelp) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listsinceblock ( \"blockhash\" target-confirmations includeWatchonly)\n" |
|
|
|
"listsinceblock ( \"blockhash\" target-confirmations includeWatchonly)\n" |
|
|
@ -1709,7 +1709,7 @@ UniValue gettransaction(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"gettransaction \"txid\" ( includeWatchonly )\n" |
|
|
|
"gettransaction \"txid\" ( includeWatchonly )\n" |
|
|
@ -1824,7 +1824,7 @@ UniValue backupwallet(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
if (fHelp || params.size() != 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"backupwallet \"destination\"\n" |
|
|
|
"backupwallet \"destination\"\n" |
|
|
@ -1850,7 +1850,7 @@ UniValue keypoolrefill(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 1) |
|
|
|
if (fHelp || params.size() > 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"keypoolrefill ( newsize )\n" |
|
|
|
"keypoolrefill ( newsize )\n" |
|
|
@ -1894,7 +1894,7 @@ UniValue walletpassphrase(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2)) |
|
|
|
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2)) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"walletpassphrase \"passphrase\" timeout\n" |
|
|
|
"walletpassphrase \"passphrase\" timeout\n" |
|
|
@ -1954,7 +1954,7 @@ UniValue walletpassphrasechange(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2)) |
|
|
|
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 2)) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"walletpassphrasechange \"oldpassphrase\" \"newpassphrase\"\n" |
|
|
|
"walletpassphrasechange \"oldpassphrase\" \"newpassphrase\"\n" |
|
|
@ -2000,7 +2000,7 @@ UniValue walletlock(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 0)) |
|
|
|
if (pwalletMain->IsCrypted() && (fHelp || params.size() != 0)) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"walletlock\n" |
|
|
|
"walletlock\n" |
|
|
@ -2039,7 +2039,7 @@ UniValue encryptwallet(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (!pwalletMain->IsCrypted() && (fHelp || params.size() != 1)) |
|
|
|
if (!pwalletMain->IsCrypted() && (fHelp || params.size() != 1)) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"encryptwallet \"passphrase\"\n" |
|
|
|
"encryptwallet \"passphrase\"\n" |
|
|
@ -2096,7 +2096,7 @@ UniValue lockunspent(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
if (fHelp || params.size() < 1 || params.size() > 2) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"lockunspent unlock [{\"txid\":\"txid\",\"vout\":n},...]\n" |
|
|
|
"lockunspent unlock [{\"txid\":\"txid\",\"vout\":n},...]\n" |
|
|
@ -2180,7 +2180,7 @@ UniValue listlockunspent(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 0) |
|
|
|
if (fHelp || params.size() > 0) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listlockunspent\n" |
|
|
|
"listlockunspent\n" |
|
|
@ -2229,7 +2229,7 @@ UniValue settxfee(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() < 1 || params.size() > 1) |
|
|
|
if (fHelp || params.size() < 1 || params.size() > 1) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"settxfee amount\n" |
|
|
|
"settxfee amount\n" |
|
|
@ -2256,7 +2256,7 @@ UniValue getwalletinfo(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() != 0) |
|
|
|
if (fHelp || params.size() != 0) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"getwalletinfo\n" |
|
|
|
"getwalletinfo\n" |
|
|
@ -2298,7 +2298,7 @@ UniValue resendwallettransactions(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() != 0) |
|
|
|
if (fHelp || params.size() != 0) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"resendwallettransactions\n" |
|
|
|
"resendwallettransactions\n" |
|
|
@ -2323,7 +2323,7 @@ UniValue listunspent(const UniValue& params, bool fHelp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
if (!EnsureWalletIsAvailable(fHelp)) |
|
|
|
return NullUniValue; |
|
|
|
return NullUniValue; |
|
|
|
|
|
|
|
|
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
if (fHelp || params.size() > 3) |
|
|
|
throw runtime_error( |
|
|
|
throw runtime_error( |
|
|
|
"listunspent ( minconf maxconf [\"address\",...] )\n" |
|
|
|
"listunspent ( minconf maxconf [\"address\",...] )\n" |
|
|
|