@ -166,7 +166,7 @@ UniValue getaccountaddress(const JSONRPCRequest& request)
" \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 "
" \n Result: \n "
" \" address \" (string) The account bitcoin address\n "
" \" address \" (string) The account bitcoin address\n "
" \n Examples: \n "
+ HelpExampleCli ( " getaccountaddress " , " " )
+ HelpExampleCli ( " getaccountaddress " , " \" \" " )
@ -231,7 +231,7 @@ UniValue setaccount(const JSONRPCRequest& request)
" setaccount \" address \" \" account \" \n "
" \n DEPRECATED. Sets the account associated with the given address. \n "
" \n Arguments: \n "
" 1. \" 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 "
" \n Examples: \n "
+ HelpExampleCli ( " setaccount " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ \" \" tabby \" " )
@ -277,7 +277,7 @@ UniValue getaccount(const JSONRPCRequest& request)
" getaccount \" address \" \n "
" \n DEPRECATED. Returns the account associated with the given address. \n "
" \n Arguments: \n "
" 1. \" address \" (string, required) The bitcoin address for account lookup.\n "
" 1. \" address \" (string, required) The bitcoin address for account lookup.\n "
" \n Result: \n "
" \" accountname \" (string) the account address \n "
" \n Examples: \n "
@ -309,10 +309,10 @@ UniValue getaddressesbyaccount(const JSONRPCRequest& request)
" getaddressesbyaccount \" account \" \n "
" \n DEPRECATED. Returns the list of addresses for the given account. \n "
" \n Arguments: \n "
" 1. \" account \" (string, required) The account name.\n "
" 1. \" account \" (string, required) The account name.\n "
" \n Result: \n "
" [ (json array of string) \n "
" \" 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 Examples: \n "
@ -384,17 +384,17 @@ UniValue sendtoaddress(const JSONRPCRequest& request)
" \n Send an amount to a given address. \n "
+ HelpRequiringPassphrase ( ) +
" \n Arguments: \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 "
" 3. \" comment \" (string, optional) A comment used to store what the transaction is for. \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 "
" 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 "
" 4. \" comment_to \" (string, optional) A comment to store the name of the person or organization \n "
" 4. \" comment_to \" (string, optional) A comment to store the name of the person or organization \n "
" to which you're sending the transaction. This is not part of the \n "
" transaction, just kept in your wallet. \n "
" 5. subtractfeefromamount (boolean, optional, default=false) The fee will be deducted from the amount being sent. \n "
" The recipient will receive less bitcoins than you enter in the amount field. \n "
" \n Result: \n "
" \" t ransactionid\" (string) The transaction id.\n "
" \" t xid\" (string) The transaction id.\n "
" \n Examples: \n "
+ HelpExampleCli ( " sendtoaddress " , " \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 " )
+ HelpExampleCli ( " sendtoaddress " , " \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 \" donation \" \" seans outpost \" " )
@ -493,7 +493,7 @@ UniValue signmessage(const JSONRPCRequest& request)
" \n Sign a message with the private key of an address "
+ HelpRequiringPassphrase ( ) + " \n "
" \n Arguments: \n "
" 1. \" 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 "
" \n Result: \n "
" \" signature \" (string) The signature of the message encoded in base 64 \n "
@ -548,7 +548,7 @@ UniValue getreceivedbyaddress(const JSONRPCRequest& request)
" getreceivedbyaddress \" address \" ( minconf ) \n "
" \n Returns the total amount received by the given address in transactions with at least minconf confirmations. \n "
" \n Arguments: \n "
" 1. \" 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 "
" \n Result: \n "
" amount (numeric) The total amount in " + CURRENCY_UNIT + " received at this address. \n "
@ -803,7 +803,7 @@ UniValue sendfrom(const JSONRPCRequest& request)
+ HelpRequiringPassphrase ( ) + " \n "
" \n Arguments: \n "
" 1. \" fromaccount \" (string, required) The name of the account to send funds from. May be the default account using \" \" . \n "
" 2. \" toaddress \" (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 "
" 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 "
@ -812,7 +812,7 @@ UniValue sendfrom(const JSONRPCRequest& request)
" to which you're sending the transaction. This is not part of the transaction, \n "
" it is just kept in your wallet. \n "
" \n Result: \n "
" \" t ransactionid\" (string) The transaction id.\n "
" \" t xid\" (string) The transaction id.\n "
" \n Examples: \n "
" \n Send 0.01 " + CURRENCY_UNIT + " from the default account to the address, must have at least 1 confirmation \n "
+ HelpExampleCli ( " sendfrom " , " \" \" \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.01 " ) +
@ -879,11 +879,11 @@ UniValue sendmany(const JSONRPCRequest& request)
" Those recipients will receive less bitcoins than you enter in their corresponding amount field. \n "
" If no addresses are specified here, the sender pays the fee. \n "
" [ \n "
" \" address \" (string) Subtract fee from this address\n "
" \" address \" (string) Subtract fee from this address\n "
" ,... \n "
" ] \n "
" \n Result: \n "
" \" t ransactionid\" (string) The transaction id for the send. Only 1 transaction is created regardless of \n "
" \" t xid\" (string) The transaction id for the send. Only 1 transaction is created regardless of \n "
" the number of addresses. \n "
" \n Examples: \n "
" \n Send two amounts to two different addresses: \n "
@ -997,7 +997,7 @@ UniValue addmultisigaddress(const JSONRPCRequest& request)
" 3. \" account \" (string, optional) DEPRECATED. An account to assign the addresses to. \n "
" \n Result: \n "
" \" address \" (string) A bitcoin address associated with the keys.\n "
" \" address \" (string) A bitcoin address associated with the keys.\n "
" \n Examples: \n "
" \n Add a multisig address from 2 addresses \n "
@ -1256,8 +1256,8 @@ UniValue listreceivedbyaddress(const JSONRPCRequest& request)
" listreceivedbyaddress ( minconf include_empty include_watchonly) \n "
" \n List balances by receiving address. \n "
" \n Arguments: \n "
" 1. minconf (numeric, optional, default=1) The minimum number of confirmations before payments are included.\n "
" 2. include_empty (bool, optional, default=false) Whether to include addresses that haven't received any payments.\n "
" 1. minconf (numeric, optional, default=1) The minimum number of confirmations before payments are included.\n "
" 2. include_empty (bool, optional, default=false) Whether to include addresses that haven't received any payments.\n "
" 3. include_watchonly (bool, optional, default=false) Whether to include watchonly addresses (see 'importaddress'). \n "
" \n Result: \n "
@ -1294,8 +1294,8 @@ UniValue listreceivedbyaccount(const JSONRPCRequest& request)
" listreceivedbyaccount ( minconf include_empty include_watchonly) \n "
" \n DEPRECATED. List balances by account. \n "
" \n Arguments: \n "
" 1. minconf (numeric, optional, default=1) The minimum number of confirmations before payments are included.\n "
" 2. include_empty (bool, optional, default=false) Whether to include accounts that haven't received any payments.\n "
" 1. minconf (numeric, optional, default=1) The minimum number of confirmations before payments are included.\n "
" 2. include_empty (bool, optional, default=false) Whether to include accounts that haven't received any payments.\n "
" 3. include_watchonly (bool, optional, default=false) Whether to include watchonly addresses (see 'importaddress'). \n "
" \n Result: \n "
@ -1427,12 +1427,12 @@ UniValue listtransactions(const JSONRPCRequest& request)
if ( request . fHelp | | request . params . size ( ) > 4 )
throw runtime_error (
" listtransactions ( \" account \" count from include_watchonly)\n "
" listtransactions ( \" account \" count skip include_watchonly)\n "
" \n Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'. \n "
" \n Arguments: \n "
" 1. \" account \" (string, optional) DEPRECATED. The account name. Should be \" * \" . \n "
" 2. count (numeric, optional, default=10) The number of transactions to return \n "
" 3. from (numeric, optional, default=0) The number of transactions to skip\n "
" 3. skip (numeric, optional, default=0) The number of transactions to skip\n "
" 4. include_watchonly (bool, optional, default=false) Include transactions to watchonly addresses (see 'importaddress') \n "
" \n Result: \n "
" [ \n "
@ -1557,8 +1557,8 @@ UniValue listaccounts(const JSONRPCRequest& request)
" listaccounts ( minconf include_watchonly) \n "
" \n DEPRECATED. Returns Object that has account names as keys, account balances as values. \n "
" \n Arguments: \n "
" 1. minconf (numeric, optional, default=1) Only include transactions with at least this many confirmations\n "
" 2. include_watchonly (bool, optional, default=false) Include balances in watchonly addresses (see 'importaddress')\n "
" 1. minconf (numeric, optional, default=1) Only include transactions with at least this many confirmations\n "
" 2. include_watchonly (bool, optional, default=false) Include balances in watchonly addresses (see 'importaddress')\n "
" \n Result: \n "
" { (json object where keys are account names, and values are numeric balances \n "
" \" account \" : x.xxx, (numeric) The property name is the account name, and the value is the total balance for the account. \n "
@ -1636,8 +1636,8 @@ UniValue listsinceblock(const JSONRPCRequest& request)
" listsinceblock ( \" blockhash \" target_confirmations include_watchonly) \n "
" \n Get all transactions in blocks since block [blockhash], or all transactions if omitted \n "
" \n Arguments: \n "
" 1. \" blockhash \" (string, optional) The block hash to list transactions since\n "
" 2. target_confirmations: (numeric, optional) The confirmations required, must be 1 or more\n "
" 1. \" blockhash \" (string, optional) The block hash to list transactions since\n "
" 2. target_confirmations: (numeric, optional) The confirmations required, must be 1 or more\n "
" 3. include_watchonly: (bool, optional, default=false) Include transactions to watchonly addresses (see 'importaddress') "
" \n Result: \n "
" { \n "
@ -1729,8 +1729,8 @@ UniValue gettransaction(const JSONRPCRequest& request)
" gettransaction \" txid \" ( include_watchonly ) \n "
" \n Get detailed information about in-wallet transaction <txid> \n "
" \n Arguments: \n "
" 1. \" txid \" (string, required) The transaction id\n "
" 2. \" include_watchonly \" (bool, optional, default=false) Whether to include watchonly addresses in balance calculation and details[]\n "
" 1. \" txid \" (string, required) The transaction id\n "
" 2. \" include_watchonly \" (bool, optional, default=false) Whether to include watchonly addresses in balance calculation and details[]\n "
" \n Result: \n "
" { \n "
" \" amount \" : x.xxx, (numeric) The transaction amount in " + CURRENCY_UNIT + " \n "
@ -2475,7 +2475,7 @@ UniValue fundrawtransaction(const JSONRPCRequest& request)
" Only pay-to-pubkey, multisig, and P2SH versions thereof are currently supported for watch-only \n "
" \n Arguments: \n "
" 1. \" hexstring \" (string, required) The hex string of the raw transaction \n "
" 2. options (object, optional)\n "
" 2. options (object, optional)\n "
" { \n "
" \" changeAddress \" (string, optional, default pool address) The bitcoin address to receive the change \n "
" \" changePosition \" (numeric, optional, default random) The index of the change output \n "
@ -2628,7 +2628,7 @@ static const CRPCCommand commands[] =
{ " wallet " , " listreceivedbyaccount " , & listreceivedbyaccount , false , { " minconf " , " include_empty " , " include_watchonly " } } ,
{ " wallet " , " listreceivedbyaddress " , & listreceivedbyaddress , false , { " minconf " , " include_empty " , " include_watchonly " } } ,
{ " wallet " , " listsinceblock " , & listsinceblock , false , { " blockhash " , " target_confirmations " , " include_watchonly " } } ,
{ " wallet " , " listtransactions " , & listtransactions , false , { " account " , " count " , " from " , " include_watchonly " } } ,
{ " wallet " , " listtransactions " , & listtransactions , false , { " account " , " count " , " skip " , " include_watchonly " } } ,
{ " wallet " , " listunspent " , & listunspent , false , { " minconf " , " maxconf " , " addresses " } } ,
{ " wallet " , " lockunspent " , & lockunspent , true , { " unlock " , " transactions " } } ,
{ " wallet " , " move " , & movecmd , false , { " fromaccount " , " toaccount " , " amount " , " minconf " , " comment " } } ,