Safely copies *wallet.dat* to 'destination', which can be a directory or a path with filename.
Safely copies *wallet.dat* to 'destination', which can be a directory or a path with filename.
.TP
.TP
\fBgetaccount 'bitcoinaddress'\fR
\fBgetaccount 'bitcoinaddress'\fR
Returns the account associated with the given address.
DEPRECATED. Returns the account associated with the given address.
.TP
.TP
\fBsetaccount 'bitcoinaddress' ['account']\fR
\fBsetaccount 'bitcoinaddress' ['account']\fR
Sets the ['account'] associated with the given address. ['account'] may be omitted to remove an address from ['account'].
DEPRECATED. Sets the ['account'] associated with the given address. ['account'] may be omitted to remove an address from ['account'].
.TP
.TP
\fBgetaccountaddress 'account'\fR
\fBgetaccountaddress 'account'\fR
Returns a new bitcoin address for 'account'.
DEPRECATED. Returns a new bitcoin address for 'account'.
.TP
.TP
\fBgetaddressesbyaccount 'account'\fR
\fBgetaddressesbyaccount 'account'\fR
Returns the list of addresses associated with the given 'account'.
DEPRECATED. Returns the list of addresses associated with the given 'account'.
.TP
.TP
\fBgetbalance 'account'\fR
\fBgetbalance 'account'\fR
Returns the server's available balance, or the balance for 'account'.
Returns the server's available balance, or the balance for 'account' (accounts are deprecated).
.TP
.TP
\fBgetblockcount\fR
\fBgetblockcount\fR
Returns the number of blocks in the longest block chain.
Returns the number of blocks in the longest block chain.
@ -124,10 +124,10 @@ Returns a recent hashes per second performance measurement while generating.
Returns an object containing server information.
Returns an object containing server information.
.TP
.TP
\fBgetnewaddress 'account'\fR
\fBgetnewaddress 'account'\fR
Returns a new bitcoin address for receiving payments. If 'account' is specified (recommended), it is added to the address book so payments received with the address will be credited to 'account'.
Returns a new bitcoin address for receiving payments. If 'account' is specified (deprecated), it is added to the address book so payments received with the address will be credited to 'account'.
['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing:
['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing:
"account" : the account of the receiving address.
"account" : DEPRECATED. the account of the receiving address.
"amount" : total amount received by the address.
"amount" : total amount received by the address.
"confirmations" : number of confirmations of the most recent transaction included.
"confirmations" : number of confirmations of the most recent transaction included.
.TP
.TP
@ -161,7 +161,7 @@ List accounts and their current balances.
['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing:
['minconf'] is the minimum number of confirmations before payments are included. ['includeempty'] whether to include addresses that haven't received any payments. Returns an array of objects containing:
"address" : receiving address.
"address" : receiving address.
"account" : the account of the receiving address.
"account" : DEPRECATED. the account of the receiving address.
"amount" : total amount received by the address.
"amount" : total amount received by the address.
"confirmations" : number of confirmations of the most recent transaction included.
"confirmations" : number of confirmations of the most recent transaction included.
.TP
.TP
@ -180,10 +180,10 @@ Returns a list of the last ['count'] transactions for 'account' \- for all accou
Sends amount from account's balance to 'bitcoinaddress'. This method will fail if there is less than amount bitcoins with ['minconf'] confirmations in the account's balance (unless account is the empty-string-named default account; it behaves like the *sendtoaddress* method). Returns transaction ID on success.
DEPRECATED. Sends amount from account's balance to 'bitcoinaddress'. This method will fail if there is less than amount bitcoins with ['minconf'] confirmations in the account's balance (unless account is the empty-string-named default account; it behaves like the *sendtoaddress* method). Returns transaction ID on success.
Sends amount from the server's available balance to 'bitcoinaddress'. amount is a real and is rounded to the nearest 0.01. Returns transaction id on success.
Sends amount from the server's available balance to 'bitcoinaddress'. amount is a real and is rounded to the nearest 0.01. Returns transaction id on success.
@ -79,17 +79,15 @@ Value getnewaddress(const Array& params, bool fHelp)
throwruntime_error(
throwruntime_error(
"getnewaddress ( \"account\" )\n"
"getnewaddress ( \"account\" )\n"
"\nReturns a new Bitcoin address for receiving payments.\n"
"\nReturns a new Bitcoin address for receiving payments.\n"
"If 'account' is specified (recommended), it is added to the address book \n"
"If 'account' is specified (DEPRECATED), it is added to the address book \n"
"so payments received with the address will be credited to 'account'.\n"
"so payments received with the address will be credited to 'account'.\n"
"\nArguments:\n"
"\nArguments:\n"
"1. \"account\" (string, optional) The account name for the address to be linked to. if not provided, the default account \"\" is used. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created if there is no account by the given name.\n"
"1. \"account\" (string, optional) DEPRECATED. The account name for the address to be linked to. if not provided, the default account \"\" is used. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created if there is no account by the given name.\n"
"\nResult:\n"
"\nResult:\n"
"\"bitcoinaddress\" (string) The new bitcoin address\n"
"\"bitcoinaddress\" (string) The new bitcoin address\n"
"\nExamples:\n"
"\nExamples:\n"
+HelpExampleCli("getnewaddress","")
+HelpExampleCli("getnewaddress","")
+HelpExampleCli("getnewaddress","\"\"")
+HelpExampleRpc("getnewaddress","")
+HelpExampleCli("getnewaddress","\"myaccount\"")
+HelpExampleRpc("getnewaddress","\"myaccount\"")
);
);
// Parse the account first so we don't generate a key if there's an error
// Parse the account first so we don't generate a key if there's an error
@ -154,7 +152,7 @@ Value getaccountaddress(const Array& params, bool fHelp)
if(fHelp||params.size()!=1)
if(fHelp||params.size()!=1)
throwruntime_error(
throwruntime_error(
"getaccountaddress \"account\"\n"
"getaccountaddress \"account\"\n"
"\nReturns the current Bitcoin address for receiving payments to this account.\n"
"\nDEPRECATED. Returns the current Bitcoin address for receiving payments to this account.\n"
"\nArguments:\n"
"\nArguments:\n"
"1. \"account\" (string, required) The account name for the address. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created and a new address created if there is no account by the given name.\n"
"1. \"account\" (string, required) The account name for the address. It can also be set to the empty string \"\" to represent the default account. The account does not need to exist, it will be created and a new address created if there is no account by the given name.\n"
"\nResult:\n"
"\nResult:\n"
@ -212,7 +210,7 @@ Value setaccount(const Array& params, bool fHelp)
if(fHelp||params.size()<1||params.size()>2)
if(fHelp||params.size()<1||params.size()>2)
throwruntime_error(
throwruntime_error(
"setaccount \"bitcoinaddress\"\"account\"\n"
"setaccount \"bitcoinaddress\"\"account\"\n"
"\nSets the account associated with the given address.\n"
"\nDEPRECATED. Sets the account associated with the given address.\n"
"\nArguments:\n"
"\nArguments:\n"
"1. \"bitcoinaddress\" (string, required) The bitcoin address to be associated with an account.\n"
"1. \"bitcoinaddress\" (string, required) The bitcoin address to be associated with an account.\n"
"2. \"account\" (string, required) The account to assign the address to.\n"
"2. \"account\" (string, required) The account to assign the address to.\n"
@ -254,7 +252,7 @@ Value getaccount(const Array& params, bool fHelp)
if(fHelp||params.size()!=1)
if(fHelp||params.size()!=1)
throwruntime_error(
throwruntime_error(
"getaccount \"bitcoinaddress\"\n"
"getaccount \"bitcoinaddress\"\n"
"\nReturns the account associated with the given address.\n"
"\nDEPRECATED. Returns the account associated with the given address.\n"
"\nArguments:\n"
"\nArguments:\n"
"1. \"bitcoinaddress\" (string, required) The bitcoin address for account lookup.\n"
"1. \"bitcoinaddress\" (string, required) The bitcoin address for account lookup.\n"
"\nResult:\n"
"\nResult:\n"
@ -281,7 +279,7 @@ Value getaddressesbyaccount(const Array& params, bool fHelp)
if(fHelp||params.size()!=1)
if(fHelp||params.size()!=1)
throwruntime_error(
throwruntime_error(
"getaddressesbyaccount \"account\"\n"
"getaddressesbyaccount \"account\"\n"
"\nReturns the list of addresses for the given account.\n"
"\nDEPRECATED. Returns the list of addresses for the given account.\n"
"\nArguments:\n"
"\nArguments:\n"
"1. \"account\" (string, required) The account name.\n"
"1. \"account\" (string, required) The account name.\n"
"\nResult:\n"
"\nResult:\n"
@ -400,7 +398,7 @@ Value listaddressgroupings(const Array& params, bool fHelp)
" [\n"
" [\n"
"\"bitcoinaddress\", (string) The bitcoin address\n"
"\"bitcoinaddress\", (string) The bitcoin address\n"
" amount, (numeric) The amount in btc\n"
" amount, (numeric) The amount in btc\n"
"\"account\" (string, optional) The account\n"
"\"account\" (string, optional) The account (DEPRECATED)\n"
" ]\n"
" ]\n"
" ,...\n"
" ,...\n"
" ]\n"
" ]\n"
@ -542,7 +540,7 @@ Value getreceivedbyaccount(const Array& params, bool fHelp)
if(fHelp||params.size()<1||params.size()>2)
if(fHelp||params.size()<1||params.size()>2)
throwruntime_error(
throwruntime_error(
"getreceivedbyaccount \"account\" ( minconf )\n"
"getreceivedbyaccount \"account\" ( minconf )\n"
"\nReturns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.\n"
"\nDEPRECATED. Returns the total amount received by addresses with <account> in transactions with at least [minconf] confirmations.\n"
"\nArguments:\n"
"\nArguments:\n"
"1. \"account\" (string, required) The selected account, may be the default account using \"\".\n"
"1. \"account\" (string, required) The selected account, may be the default account using \"\".\n"
"2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.\n"
"2. minconf (numeric, optional, default=1) Only include transactions confirmed at least this many times.\n"
@ -627,26 +625,22 @@ Value getbalance(const Array& params, bool fHelp)