@ -116,7 +116,7 @@ UniValue getnewaddress(const JSONRPCRequest& request)
" \n Arguments: \n "
" \n Arguments: \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 "
" 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 "
" \n Result: \n "
" \n Result: \n "
" \" bitcoin address\" (string) The new bitcoin address \n "
" \" address \" (string) The new bitcoin address \n "
" \n Examples: \n "
" \n Examples: \n "
+ HelpExampleCli ( " getnewaddress " , " " )
+ HelpExampleCli ( " getnewaddress " , " " )
+ HelpExampleRpc ( " getnewaddress " , " " )
+ HelpExampleRpc ( " getnewaddress " , " " )
@ -166,7 +166,7 @@ UniValue getaccountaddress(const JSONRPCRequest& request)
" \n Arguments: \n "
" \n Arguments: \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 "
" \n Result: \n "
" \n Result: \n "
" \" bitcoin address\" (string) The account bitcoin address \n "
" \" address \" (string) The account bitcoin address \n "
" \n Examples: \n "
" \n Examples: \n "
+ HelpExampleCli ( " getaccountaddress " , " " )
+ HelpExampleCli ( " getaccountaddress " , " " )
+ HelpExampleCli ( " getaccountaddress " , " \" \" " )
+ HelpExampleCli ( " getaccountaddress " , " \" \" " )
@ -228,10 +228,10 @@ UniValue setaccount(const JSONRPCRequest& request)
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
throw runtime_error (
throw runtime_error (
" setaccount \" bitcoin address\" \" account \" \n "
" setaccount \" address \" \" account \" \n "
" \n DEPRECATED. Sets the account associated with the given address. \n "
" \n DEPRECATED. Sets the account associated with the given address. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" bitcoin address\" (string, required) The bitcoin address to be associated with an account. \n "
" 1. \" address \" (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 "
" \n Examples: \n "
" \n Examples: \n "
+ HelpExampleCli ( " setaccount " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ \" \" tabby \" " )
+ HelpExampleCli ( " setaccount " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ \" \" tabby \" " )
@ -274,10 +274,10 @@ UniValue getaccount(const JSONRPCRequest& request)
if ( request . fHelp | | request . params . size ( ) ! = 1 )
if ( request . fHelp | | request . params . size ( ) ! = 1 )
throw runtime_error (
throw runtime_error (
" getaccount \" bitcoin address\" \n "
" getaccount \" address \" \n "
" \n DEPRECATED. Returns the account associated with the given address. \n "
" \n DEPRECATED. Returns the account associated with the given address. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" bitcoin address\" (string, required) The bitcoin address for account lookup. \n "
" 1. \" address \" (string, required) The bitcoin address for account lookup. \n "
" \n Result: \n "
" \n Result: \n "
" \" accountname \" (string) the account address \n "
" \" accountname \" (string) the account address \n "
" \n Examples: \n "
" \n Examples: \n "
@ -312,7 +312,7 @@ UniValue getaddressesbyaccount(const JSONRPCRequest& request)
" 1. \" account \" (string, required) The account name. \n "
" 1. \" account \" (string, required) The account name. \n "
" \n Result: \n "
" \n Result: \n "
" [ (json array of string) \n "
" [ (json array of string) \n "
" \" bitcoin address\" (string) a bitcoin address associated with the given account \n "
" \" address \" (string) a bitcoin address associated with the given account \n "
" ,... \n "
" ,... \n "
" ] \n "
" ] \n "
" \n Examples: \n "
" \n Examples: \n "
@ -380,11 +380,11 @@ UniValue sendtoaddress(const JSONRPCRequest& request)
if ( request . fHelp | | request . params . size ( ) < 2 | | request . params . size ( ) > 5 )
if ( request . fHelp | | request . params . size ( ) < 2 | | request . params . size ( ) > 5 )
throw runtime_error (
throw runtime_error (
" sendtoaddress \" bitcoin address\" amount ( \" comment \" \" comment_to \" subtractfeefromamount ) \n "
" sendtoaddress \" address \" amount ( \" comment \" \" comment_to \" subtractfeefromamount ) \n "
" \n Send an amount to a given address. \n "
" \n Send an amount to a given address. \n "
+ HelpRequiringPassphrase ( ) +
+ HelpRequiringPassphrase ( ) +
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" bitcoin address\" (string, required) The bitcoin address to send to. \n "
" 1. \" address \" (string, required) The bitcoin address to send to. \n "
" 2. \" amount \" (numeric or string, required) The amount in " + CURRENCY_UNIT + " to send. eg 0.1 \n "
" 2. \" amount \" (numeric or string, required) The amount in " + CURRENCY_UNIT + " to send. eg 0.1 \n "
" 3. \" comment \" (string, optional) A comment used to store what the transaction is for. \n "
" 3. \" comment \" (string, optional) A comment used to store what the transaction is for. \n "
" This is not part of the transaction, just kept in your wallet. \n "
" This is not part of the transaction, just kept in your wallet. \n "
@ -446,7 +446,7 @@ UniValue listaddressgroupings(const JSONRPCRequest& request)
" [ \n "
" [ \n "
" [ \n "
" [ \n "
" [ \n "
" [ \n "
" \" bitcoin address\" , (string) The bitcoin address \n "
" \" address \" , (string) The bitcoin address \n "
" amount, (numeric) The amount in " + CURRENCY_UNIT + " \n "
" amount, (numeric) The amount in " + CURRENCY_UNIT + " \n "
" \" account \" (string, optional) The account (DEPRECATED) \n "
" \" account \" (string, optional) The account (DEPRECATED) \n "
" ] \n "
" ] \n "
@ -489,11 +489,11 @@ UniValue signmessage(const JSONRPCRequest& request)
if ( request . fHelp | | request . params . size ( ) ! = 2 )
if ( request . fHelp | | request . params . size ( ) ! = 2 )
throw runtime_error (
throw runtime_error (
" signmessage \" bitcoin address\" \" message \" \n "
" signmessage \" address \" \" message \" \n "
" \n Sign a message with the private key of an address "
" \n Sign a message with the private key of an address "
+ HelpRequiringPassphrase ( ) + " \n "
+ HelpRequiringPassphrase ( ) + " \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" bitcoin address\" (string, required) The bitcoin address to use for the private key. \n "
" 1. \" address \" (string, required) The bitcoin address to use for the private key. \n "
" 2. \" message \" (string, required) The message to create a signature of. \n "
" 2. \" message \" (string, required) The message to create a signature of. \n "
" \n Result: \n "
" \n Result: \n "
" \" signature \" (string) The signature of the message encoded in base 64 \n "
" \" signature \" (string) The signature of the message encoded in base 64 \n "
@ -545,10 +545,10 @@ UniValue getreceivedbyaddress(const JSONRPCRequest& request)
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
if ( request . fHelp | | request . params . size ( ) < 1 | | request . params . size ( ) > 2 )
throw runtime_error (
throw runtime_error (
" getreceivedbyaddress \" bitcoin address\" ( minconf ) \n "
" getreceivedbyaddress \" address \" ( minconf ) \n "
" \n Returns the total amount received by the given bitcoin address in transactions with at least minconf confirmations. \n "
" \n Returns the total amount received by the given address in transactions with at least minconf confirmations. \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" bitcoin address\" (string, required) The bitcoin address for transactions. \n "
" 1. \" address \" (string, required) The bitcoin address for transactions. \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 "
" \n Result: \n "
" \n Result: \n "
" amount (numeric) The total amount in " + CURRENCY_UNIT + " received at this address. \n "
" amount (numeric) The total amount in " + CURRENCY_UNIT + " received at this address. \n "
@ -798,12 +798,12 @@ UniValue sendfrom(const JSONRPCRequest& request)
if ( request . fHelp | | request . params . size ( ) < 3 | | request . params . size ( ) > 6 )
if ( request . fHelp | | request . params . size ( ) < 3 | | request . params . size ( ) > 6 )
throw runtime_error (
throw runtime_error (
" sendfrom \" fromaccount \" \" tobitcoin address \" amount ( minconf \" comment \" \" comment_to \" ) \n "
" sendfrom \" fromaccount \" \" toaddress \" amount ( minconf \" comment \" \" comment_to \" ) \n "
" \n DEPRECATED (use sendtoaddress). Sent an amount from an account to a bitcoin address. "
" \n DEPRECATED (use sendtoaddress). Sent an amount from an account to a bitcoin address. "
+ HelpRequiringPassphrase ( ) + " \n "
+ HelpRequiringPassphrase ( ) + " \n "
" \n Arguments: \n "
" \n Arguments: \n "
" 1. \" fromaccount \" (string, required) The name of the account to send funds from. May be the default account using \" \" . \n "
" 1. \" fromaccount \" (string, required) The name of the account to send funds from. May be the default account using \" \" . \n "
" 2. \" tobitcoin address \" (string, required) The bitcoin address to send funds to. \n "
" 2. \" toaddress \" (string, required) The bitcoin address to send funds to. \n "
" 3. amount (numeric or string, required) The amount in " + CURRENCY_UNIT + " (transaction fee is added on top). \n "
" 3. amount (numeric or string, required) The amount in " + CURRENCY_UNIT + " (transaction fee is added on top). \n "
" 4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations. \n "
" 4. minconf (numeric, optional, default=1) Only use funds with at least this many confirmations. \n "
" 5. \" comment \" (string, optional) A comment used to store what the transaction is for. \n "
" 5. \" comment \" (string, optional) A comment used to store what the transaction is for. \n "
@ -997,7 +997,7 @@ UniValue addmultisigaddress(const JSONRPCRequest& request)
" 3. \" account \" (string, optional) DEPRECATED. An account to assign the addresses to. \n "
" 3. \" account \" (string, optional) DEPRECATED. An account to assign the addresses to. \n "
" \n Result: \n "
" \n Result: \n "
" \" bitcoin address\" (string) A bitcoin address associated with the keys. \n "
" \" address \" (string) A bitcoin address associated with the keys. \n "
" \n Examples: \n "
" \n Examples: \n "
" \n Add a multisig address from 2 addresses \n "
" \n Add a multisig address from 2 addresses \n "
@ -1439,7 +1439,7 @@ UniValue listtransactions(const JSONRPCRequest& request)
" { \n "
" { \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name associated with the transaction. \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name associated with the transaction. \n "
" It will be \" \" for the default account. \n "
" It will be \" \" for the default account. \n "
" \" address \" : \" bitcoin address\" , (string) The bitcoin address of the transaction. Not present for \n "
" \" address \" : \" address \" , (string) The bitcoin address of the transaction. Not present for \n "
" move transactions (category = move). \n "
" move transactions (category = move). \n "
" \" category \" : \" send|receive|move \" , (string) The transaction category. 'move' is a local (off blockchain) \n "
" \" category \" : \" send|receive|move \" , (string) The transaction category. 'move' is a local (off blockchain) \n "
" transaction between accounts, and not associated with an address, \n "
" transaction between accounts, and not associated with an address, \n "
@ -1643,7 +1643,7 @@ UniValue listsinceblock(const JSONRPCRequest& request)
" { \n "
" { \n "
" \" transactions \" : [ \n "
" \" transactions \" : [ \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name associated with the transaction. Will be \" \" for the default account. \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name associated with the transaction. Will be \" \" for the default account. \n "
" \" address \" : \" bitcoin address\" , (string) The bitcoin address of the transaction. Not present for move transactions (category = move). \n "
" \" address \" : \" address \" , (string) The bitcoin address of the transaction. Not present for move transactions (category = move). \n "
" \" category \" : \" send|receive \" , (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts. \n "
" \" category \" : \" send|receive \" , (string) The transaction category. 'send' has negative amounts, 'receive' has positive amounts. \n "
" \" amount \" : x.xxx, (numeric) The amount in " + CURRENCY_UNIT + " . This is negative for the 'send' category, and for the 'move' category for moves \n "
" \" amount \" : x.xxx, (numeric) The amount in " + CURRENCY_UNIT + " . This is negative for the 'send' category, and for the 'move' category for moves \n "
" outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds. \n "
" outbound. It is positive for the 'receive' category, and for the 'move' category for inbound funds. \n "
@ -1746,7 +1746,7 @@ UniValue gettransaction(const JSONRPCRequest& request)
" \" details \" : [ \n "
" \" details \" : [ \n "
" { \n "
" { \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name involved in the transaction, can be \" \" for the default account. \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name involved in the transaction, can be \" \" for the default account. \n "
" \" address \" : \" bitcoin address\" , (string) The bitcoin address involved in the transaction \n "
" \" address \" : \" address \" , (string) The bitcoin address involved in the transaction \n "
" \" category \" : \" send|receive \" , (string) The category, either 'send' or 'receive' \n "
" \" category \" : \" send|receive \" , (string) The category, either 'send' or 'receive' \n "
" \" amount \" : x.xxx, (numeric) The amount in " + CURRENCY_UNIT + " \n "
" \" amount \" : x.xxx, (numeric) The amount in " + CURRENCY_UNIT + " \n "
" \" label \" : \" label \" , (string) A comment for the address/transaction, if any \n "
" \" label \" : \" label \" , (string) A comment for the address/transaction, if any \n "
@ -2071,7 +2071,7 @@ UniValue encryptwallet(const JSONRPCRequest& request)
" \n Now set the passphrase to use the wallet, such as for signing or sending bitcoin \n "
" \n Now set the passphrase to use the wallet, such as for signing or sending bitcoin \n "
+ HelpExampleCli ( " walletpassphrase " , " \" my pass phrase \" " ) +
+ HelpExampleCli ( " walletpassphrase " , " \" my pass phrase \" " ) +
" \n Now we can so something like sign \n "
" \n Now we can so something like sign \n "
+ HelpExampleCli ( " signmessage " , " \" bitcoin address\" \" test message \" " ) +
+ HelpExampleCli ( " signmessage " , " \" address \" \" test message \" " ) +
" \n Now lock the wallet again by removing the passphrase \n "
" \n Now lock the wallet again by removing the passphrase \n "
+ HelpExampleCli ( " walletlock " , " " ) +
+ HelpExampleCli ( " walletlock " , " " ) +
" \n As a json rpc call \n "
" \n As a json rpc call \n "
@ -2601,22 +2601,22 @@ static const CRPCCommand commands[] =
{ " wallet " , " addmultisigaddress " , & addmultisigaddress , true , { " nrequired " , " keys " , " account " } } ,
{ " wallet " , " addmultisigaddress " , & addmultisigaddress , true , { " nrequired " , " keys " , " account " } } ,
{ " wallet " , " addwitnessaddress " , & addwitnessaddress , true , { " address " } } ,
{ " wallet " , " addwitnessaddress " , & addwitnessaddress , true , { " address " } } ,
{ " wallet " , " backupwallet " , & backupwallet , true , { " destination " } } ,
{ " wallet " , " backupwallet " , & backupwallet , true , { " destination " } } ,
{ " wallet " , " dumpprivkey " , & dumpprivkey , true , { " bitcoin address" } } ,
{ " wallet " , " dumpprivkey " , & dumpprivkey , true , { " address " } } ,
{ " wallet " , " dumpwallet " , & dumpwallet , true , { " filename " } } ,
{ " wallet " , " dumpwallet " , & dumpwallet , true , { " filename " } } ,
{ " wallet " , " encryptwallet " , & encryptwallet , true , { " passphrase " } } ,
{ " wallet " , " encryptwallet " , & encryptwallet , true , { " passphrase " } } ,
{ " wallet " , " getaccountaddress " , & getaccountaddress , true , { " account " } } ,
{ " wallet " , " getaccountaddress " , & getaccountaddress , true , { " account " } } ,
{ " wallet " , " getaccount " , & getaccount , true , { " bitcoin address" } } ,
{ " wallet " , " getaccount " , & getaccount , true , { " address " } } ,
{ " wallet " , " getaddressesbyaccount " , & getaddressesbyaccount , true , { " account " } } ,
{ " wallet " , " getaddressesbyaccount " , & getaddressesbyaccount , true , { " account " } } ,
{ " wallet " , " getbalance " , & getbalance , false , { " account " , " minconf " , " include_watchonly " } } ,
{ " wallet " , " getbalance " , & getbalance , false , { " account " , " minconf " , " include_watchonly " } } ,
{ " wallet " , " getnewaddress " , & getnewaddress , true , { " account " } } ,
{ " wallet " , " getnewaddress " , & getnewaddress , true , { " account " } } ,
{ " wallet " , " getrawchangeaddress " , & getrawchangeaddress , true , { } } ,
{ " wallet " , " getrawchangeaddress " , & getrawchangeaddress , true , { } } ,
{ " wallet " , " getreceivedbyaccount " , & getreceivedbyaccount , false , { " account " , " minconf " } } ,
{ " wallet " , " getreceivedbyaccount " , & getreceivedbyaccount , false , { " account " , " minconf " } } ,
{ " wallet " , " getreceivedbyaddress " , & getreceivedbyaddress , false , { " bitcoin address" , " minconf " } } ,
{ " wallet " , " getreceivedbyaddress " , & getreceivedbyaddress , false , { " address " , " minconf " } } ,
{ " wallet " , " gettransaction " , & gettransaction , false , { " txid " , " include_watchonly " } } ,
{ " wallet " , " gettransaction " , & gettransaction , false , { " txid " , " include_watchonly " } } ,
{ " wallet " , " getunconfirmedbalance " , & getunconfirmedbalance , false , { } } ,
{ " wallet " , " getunconfirmedbalance " , & getunconfirmedbalance , false , { } } ,
{ " wallet " , " getwalletinfo " , & getwalletinfo , false , { } } ,
{ " wallet " , " getwalletinfo " , & getwalletinfo , false , { } } ,
{ " wallet " , " importmulti " , & importmulti , true , { " requests " , " options " } } ,
{ " wallet " , " importmulti " , & importmulti , true , { " requests " , " options " } } ,
{ " wallet " , " importprivkey " , & importprivkey , true , { " bitcoin privkey" , " label " , " rescan " } } ,
{ " wallet " , " importprivkey " , & importprivkey , true , { " privkey " , " label " , " rescan " } } ,
{ " wallet " , " importwallet " , & importwallet , true , { " filename " } } ,
{ " wallet " , " importwallet " , & importwallet , true , { " filename " } } ,
{ " wallet " , " importaddress " , & importaddress , true , { " address " , " label " , " rescan " , " p2sh " } } ,
{ " wallet " , " importaddress " , & importaddress , true , { " address " , " label " , " rescan " , " p2sh " } } ,
{ " wallet " , " importprunedfunds " , & importprunedfunds , true , { " rawtransaction " , " txoutproof " } } ,
{ " wallet " , " importprunedfunds " , & importprunedfunds , true , { " rawtransaction " , " txoutproof " } } ,
@ -2632,12 +2632,12 @@ static const CRPCCommand commands[] =
{ " wallet " , " listunspent " , & listunspent , false , { " minconf " , " maxconf " , " addresses " } } ,
{ " wallet " , " listunspent " , & listunspent , false , { " minconf " , " maxconf " , " addresses " } } ,
{ " wallet " , " lockunspent " , & lockunspent , true , { " unlock " , " transactions " } } ,
{ " wallet " , " lockunspent " , & lockunspent , true , { " unlock " , " transactions " } } ,
{ " wallet " , " move " , & movecmd , false , { " fromaccount " , " toaccount " , " amount " , " minconf " , " comment " } } ,
{ " wallet " , " move " , & movecmd , false , { " fromaccount " , " toaccount " , " amount " , " minconf " , " comment " } } ,
{ " wallet " , " sendfrom " , & sendfrom , false , { " fromaccount " , " tobitcoin address " , " amount " , " minconf " , " comment " , " comment_to " } } ,
{ " wallet " , " sendfrom " , & sendfrom , false , { " fromaccount " , " toaddress " , " amount " , " minconf " , " comment " , " comment_to " } } ,
{ " wallet " , " sendmany " , & sendmany , false , { " fromaccount " , " amounts " , " minconf " , " comment " , " subtractfeefrom " } } ,
{ " wallet " , " sendmany " , & sendmany , false , { " fromaccount " , " amounts " , " minconf " , " comment " , " subtractfeefrom " } } ,
{ " wallet " , " sendtoaddress " , & sendtoaddress , false , { " bitcoin address" , " amount " , " comment " , " comment_to " , " subtractfeefromamount " } } ,
{ " wallet " , " sendtoaddress " , & sendtoaddress , false , { " address " , " amount " , " comment " , " comment_to " , " subtractfeefromamount " } } ,
{ " wallet " , " setaccount " , & setaccount , true , { " bitcoin address" , " account " } } ,
{ " wallet " , " setaccount " , & setaccount , true , { " address " , " account " } } ,
{ " wallet " , " settxfee " , & settxfee , true , { " amount " } } ,
{ " wallet " , " settxfee " , & settxfee , true , { " amount " } } ,
{ " wallet " , " signmessage " , & signmessage , true , { " bitcoin address" , " message " } } ,
{ " wallet " , " signmessage " , & signmessage , true , { " address " , " message " } } ,
{ " wallet " , " walletlock " , & walletlock , true , { } } ,
{ " wallet " , " walletlock " , & walletlock , true , { } } ,
{ " wallet " , " walletpassphrasechange " , & walletpassphrasechange , true , { " oldpassphrase " , " newpassphrase " } } ,
{ " wallet " , " walletpassphrasechange " , & walletpassphrasechange , true , { " oldpassphrase " , " newpassphrase " } } ,
{ " wallet " , " walletpassphrase " , & walletpassphrase , true , { " passphrase " , " timeout " } } ,
{ " wallet " , " walletpassphrase " , & walletpassphrase , true , { " passphrase " , " timeout " } } ,