@ -126,7 +126,7 @@ UniValue getnewaddress(const UniValue& params, bool fHelp)
" \n Arguments: \n "
" 1. \" account \" (string, optional) DEPRECATED. If provided, it MUST be set to the empty string \" \" to represent the default account. Passing any other string will result in an error. \n "
" \n Result: \n "
" \" zcashaddress \" (string) The new Zcash address\n "
" \" komodoaddress \" (string) The new Komodo address\n "
" \n Examples: \n "
+ HelpExampleCli ( " getnewaddress " , " " )
+ HelpExampleRpc ( " getnewaddress " , " " )
@ -203,7 +203,7 @@ UniValue getaccountaddress(const UniValue& params, bool fHelp)
" \n Arguments: \n "
" 1. \" account \" (string, required) MUST be set to the empty string \" \" to represent the default account. Passing any other string will result in an error. \n "
" \n Result: \n "
" \" zcashaddress \" (string) The account Zcash address\n "
" \" komodoaddress \" (string) The account Komodo address\n "
" \n Examples: \n "
+ HelpExampleCli ( " getaccountaddress " , " " )
+ HelpExampleCli ( " getaccountaddress " , " \" \" " )
@ -265,14 +265,14 @@ UniValue setaccount(const UniValue& params, bool fHelp)
if ( fHelp | | params . size ( ) < 1 | | params . size ( ) > 2 )
throw runtime_error (
" setaccount \" zcash address\" \" account \" \n "
" setaccount \" komodo address\" \" account \" \n "
" \n DEPRECATED. Sets the account associated with the given address. \n "
" \n Arguments: \n "
" 1. \" zcashaddress \" (string, required) The Zcash address to be associated with an account.\n "
" 1. \" komodoaddress \" (string, required) The Komodo address to be associated with an account.\n "
" 2. \" account \" (string, required) MUST be set to the empty string \" \" to represent the default account. Passing any other string will result in an error. \n "
" \n Examples: \n "
+ HelpExampleCli ( " setaccount " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" \" tabby \" " )
+ HelpExampleRpc ( " setaccount " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" , \" tabby \" " )
+ HelpExampleCli ( " setaccount " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" \" tabby \" " )
+ HelpExampleRpc ( " setaccount " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" , \" tabby \" " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -311,15 +311,15 @@ UniValue getaccount(const UniValue& params, bool fHelp)
if ( fHelp | | params . size ( ) ! = 1 )
throw runtime_error (
" getaccount \" zcash address\" \n "
" getaccount \" komodo address\" \n "
" \n DEPRECATED. Returns the account associated with the given address. \n "
" \n Arguments: \n "
" 1. \" zcashaddress \" (string, required) The Zcash address for account lookup.\n "
" 1. \" komodoaddress \" (string, required) The Komodo address for account lookup.\n "
" \n Result: \n "
" \" accountname \" (string) the account address \n "
" \n Examples: \n "
+ HelpExampleCli ( " getaccount " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" " )
+ HelpExampleRpc ( " getaccount " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" " )
+ HelpExampleCli ( " getaccount " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" " )
+ HelpExampleRpc ( " getaccount " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -349,7 +349,7 @@ UniValue getaddressesbyaccount(const UniValue& params, bool fHelp)
" 1. \" account \" (string, required) MUST be set to the empty string \" \" to represent the default account. Passing any other string will result in an error. \n "
" \n Result: \n "
" [ (json array of string) \n "
" \" zcashaddress \" (string) a Zcash address associated with the given account\n "
" \" komodoaddress \" (string) a Komodo address associated with the given account\n "
" ,... \n "
" ] \n "
" \n Examples: \n "
@ -425,11 +425,11 @@ UniValue sendtoaddress(const UniValue& params, bool fHelp)
if ( fHelp | | params . size ( ) < 2 | | params . size ( ) > 5 )
throw runtime_error (
" sendtoaddress \" zcash address\" amount ( \" comment \" \" comment-to \" subtractfeefromamount ) \n "
" sendtoaddress \" komodo address\" amount ( \" comment \" \" comment-to \" subtractfeefromamount ) \n "
" \n Send an amount to a given address. The amount is a real and is rounded to the nearest 0.00000001 \n "
+ HelpRequiringPassphrase ( ) +
" \n Arguments: \n "
" 1. \" zcashaddress \" (string, required) The Zcash address to send to.\n "
" 1. \" komodoaddress \" (string, required) The Komodo address to send to.\n "
" 2. \" amount \" (numeric, 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 "
@ -437,14 +437,14 @@ UniValue sendtoaddress(const UniValue& params, bool fHelp)
" 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 Zcash than you enter in the amount field. \n "
" The recipient will receive less Komodo than you enter in the amount field. \n "
" \n Result: \n "
" \" transactionid \" (string) The transaction id. \n "
" \n Examples: \n "
+ HelpExampleCli ( " sendtoaddress " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 " )
+ HelpExampleCli ( " sendtoaddress " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 \" donation \" \" seans outpost \" " )
+ HelpExampleCli ( " sendtoaddress " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 \" \" \" \" true " )
+ HelpExampleRpc ( " sendtoaddress " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" , 0.1, \" donation \" , \" seans outpost \" " )
+ HelpExampleCli ( " sendtoaddress " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" 0.1 " )
+ HelpExampleCli ( " sendtoaddress " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" 0.1 \" donation \" \" seans outpost \" " )
+ HelpExampleCli ( " sendtoaddress " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" 0.1 \" \" \" \" true " )
+ HelpExampleRpc ( " sendtoaddress " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" , 0.1, \" donation \" , \" seans outpost \" " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -712,7 +712,7 @@ UniValue listaddressgroupings(const UniValue& params, bool fHelp)
" [ \n "
" [ \n "
" [ \n "
" \" zcashaddress \" , (string) The zcash address\n "
" \" komodoaddress \" , (string) The komodo address\n "
" amount, (numeric) The amount in " + CURRENCY_UNIT + " \n "
" \" account \" (string, optional) The account (DEPRECATED) \n "
" ] \n "
@ -755,11 +755,11 @@ UniValue signmessage(const UniValue& params, bool fHelp)
if ( fHelp | | params . size ( ) ! = 2 )
throw runtime_error (
" signmessage \" zcash address\" \" message \" \n "
" signmessage \" komodo address\" \" message \" \n "
" \n Sign a message with the private key of an address "
+ HelpRequiringPassphrase ( ) + " \n "
" \n Arguments: \n "
" 1. \" zcashaddress \" (string, required) The Zcash address to use for the private key.\n "
" 1. \" komodoaddress \" (string, required) The Komodo 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 "
@ -767,11 +767,11 @@ UniValue signmessage(const UniValue& params, bool fHelp)
" \n Unlock the wallet for 30 seconds \n "
+ HelpExampleCli ( " walletpassphrase " , " \" mypassphrase \" 30 " ) +
" \n Create the signature \n "
+ HelpExampleCli ( " signmessage " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" \" my message \" " ) +
+ HelpExampleCli ( " signmessage " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" \" my message \" " ) +
" \n Verify the signature \n "
+ HelpExampleCli ( " verifymessage " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" \" signature \" \" my message \" " ) +
+ HelpExampleCli ( " verifymessage " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" \" signature \" \" my message \" " ) +
" \n As json rpc \n "
+ HelpExampleRpc ( " signmessage " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" , \" my message \" " )
+ HelpExampleRpc ( " signmessage " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" , \" my message \" " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -811,22 +811,22 @@ UniValue getreceivedbyaddress(const UniValue& params, bool fHelp)
if ( fHelp | | params . size ( ) < 1 | | params . size ( ) > 2 )
throw runtime_error (
" getreceivedbyaddress \" zcash address\" ( minconf ) \n "
" \n Returns the total amount received by the given Zcash address in transactions with at least minconf confirmations. \n "
" getreceivedbyaddress \" komodo address\" ( minconf ) \n "
" \n Returns the total amount received by the given Komodo address in transactions with at least minconf confirmations. \n "
" \n Arguments: \n "
" 1. \" zcashaddress \" (string, required) The Zcash address for transactions.\n "
" 1. \" komodoaddress \" (string, required) The Komodo 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 "
" \n Examples: \n "
" \n The amount from transactions with at least 1 confirmation \n "
+ HelpExampleCli ( " getreceivedbyaddress " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" " ) +
+ HelpExampleCli ( " getreceivedbyaddress " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" " ) +
" \n The amount including unconfirmed transactions, zero confirmations \n "
+ HelpExampleCli ( " getreceivedbyaddress " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" 0 " ) +
+ HelpExampleCli ( " getreceivedbyaddress " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" 0 " ) +
" \n The amount with at least 6 confirmations, very safe \n "
+ HelpExampleCli ( " getreceivedbyaddress " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" 6 " ) +
+ HelpExampleCli ( " getreceivedbyaddress " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" 6 " ) +
" \n As a json rpc call \n "
+ HelpExampleRpc ( " getreceivedbyaddress " , " \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \" , 6 " )
+ HelpExampleRpc ( " getreceivedbyaddress " , " \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \" , 6 " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -1119,13 +1119,13 @@ UniValue sendfrom(const UniValue& params, bool fHelp)
if ( fHelp | | params . size ( ) < 3 | | params . size ( ) > 6 )
throw runtime_error (
" sendfrom \" fromaccount \" \" tozcash address \" amount ( minconf \" comment \" \" comment-to \" ) \n "
" \n DEPRECATED (use sendtoaddress). Sent an amount from an account to a Zcash address. \n "
" sendfrom \" fromaccount \" \" tokomodo address \" amount ( minconf \" comment \" \" comment-to \" ) \n "
" \n DEPRECATED (use sendtoaddress). Sent an amount from an account to a Komodo address. \n "
" The amount is a real and is rounded to the nearest 0.00000001. "
+ HelpRequiringPassphrase ( ) + " \n "
" \n Arguments: \n "
" 1. \" fromaccount \" (string, required) MUST be set to the empty string \" \" to represent the default account. Passing any other string will result in an error. \n "
" 2. \" tozcashaddress \" (string, required) The Zcash address to send funds to. \n "
" 2. \" tokomodoaddress \" (string, required) The Komodo address to send funds to. \n "
" 3. amount (numeric, 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 "
@ -1137,11 +1137,11 @@ UniValue sendfrom(const UniValue& params, bool fHelp)
" \" transactionid \" (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 " , " \" \" \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.01 " ) +
+ HelpExampleCli ( " sendfrom " , " \" \" \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" 0.01 " ) +
" \n Send 0.01 from the tabby account to the given address, funds must have at least 6 confirmations \n "
+ HelpExampleCli ( " sendfrom " , " \" tabby \" \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.01 6 \" donation \" \" seans outpost \" " ) +
+ HelpExampleCli ( " sendfrom " , " \" tabby \" \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" 0.01 6 \" donation \" \" seans outpost \" " ) +
" \n As a json rpc call \n "
+ HelpExampleRpc ( " sendfrom " , " \" tabby \" , \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" , 0.01, 6, \" donation \" , \" seans outpost \" " )
+ HelpExampleRpc ( " sendfrom " , " \" tabby \" , \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" , 0.01, 6, \" donation \" , \" seans outpost \" " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -1191,14 +1191,14 @@ UniValue sendmany(const UniValue& params, bool fHelp)
" 1. \" fromaccount \" (string, required) MUST be set to the empty string \" \" to represent the default account. Passing any other string will result in an error. \n "
" 2. \" amounts \" (string, required) A json object with addresses and amounts \n "
" { \n "
" \" address \" :amount (numeric) The Zcash address is the key, the numeric amount in " + CURRENCY_UNIT + " is the value \n "
" \" address \" :amount (numeric) The Komodo address is the key, the numeric amount in " + CURRENCY_UNIT + " is the value \n "
" ,... \n "
" } \n "
" 3. minconf (numeric, optional, default=1) Only use the balance confirmed at least this many times. \n "
" 4. \" comment \" (string, optional) A comment \n "
" 5. subtractfeefromamount (string, optional) A json array with addresses. \n "
" The fee will be equally deducted from the amount of each selected address. \n "
" Those recipients will receive less Zcash than you enter in their corresponding amount field. \n "
" Those recipients will receive less Komodo 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 "
@ -1209,13 +1209,13 @@ UniValue sendmany(const UniValue& params, bool fHelp)
" the number of addresses. \n "
" \n Examples: \n "
" \n Send two amounts to two different addresses: \n "
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \\ \" :0.01, \\ \" t1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKH z\\ \" :0.02} \" " ) +
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \\ \" :0.01, \\ \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6 z\\ \" :0.02} \" " ) +
" \n Send two amounts to two different addresses setting the confirmation and comment: \n "
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \\ \" :0.01, \\ \" t1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKH z\\ \" :0.02} \" 6 \" testing \" " ) +
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \\ \" :0.01, \\ \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6 z\\ \" :0.02} \" 6 \" testing \" " ) +
" \n Send two amounts to two different addresses, subtract fee from amount: \n "
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \\ \" :0.01, \\ \" t1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKH z\\ \" :0.02} \" 1 \" \" \" [ \\ \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \\ \" , \\ \" t1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKH z\\ \" ] \" " ) +
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \\ \" :0.01, \\ \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6 z\\ \" :0.02} \" 1 \" \" \" [ \\ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \\ \" , \\ \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6 z\\ \" ] \" " ) +
" \n As a json rpc call \n "
+ HelpExampleRpc ( " sendmany " , " \" \" , \" { \\ \" t14oHp2v54vfmdgQ3v3SNuQga8JKHTNi2a1 \\ \" :0.01, \\ \" t1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKH z\\ \" :0.02} \" , 6, \" testing \" " )
+ HelpExampleRpc ( " sendmany " , " \" \" , \" { \\ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \\ \" :0.01, \\ \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6 z\\ \" :0.02} \" , 6, \" testing \" " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -1306,21 +1306,21 @@ UniValue addmultisigaddress(const UniValue& params, bool fHelp)
" \n Arguments: \n "
" 1. nrequired (numeric, required) The number of required signatures out of the n keys or addresses. \n "
" 2. \" keysobject \" (string, required) A json array of Zcash addresses or hex-encoded public keys \n "
" 2. \" keysobject \" (string, required) A json array of Komodo addresses or hex-encoded public keys \n "
" [ \n "
" \" address \" (string) Zcash address or hex-encoded public key \n "
" \" address \" (string) Komodo address or hex-encoded public key \n "
" ..., \n "
" ] \n "
" 3. \" account \" (string, optional) DEPRECATED. If provided, MUST be set to the empty string \" \" to represent the default account. Passing any other string will result in an error. \n "
" \n Result: \n "
" \" zcashaddress \" (string) A Zcash address associated with the keys.\n "
" \" komodoaddress \" (string) A Komodo address associated with the keys.\n "
" \n Examples: \n "
" \n Add a multisig address from 2 addresses \n "
+ HelpExampleCli ( " addmultisigaddress " , " 2 \" [ \\ \" t16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5 \\ \" , \\ \" t171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV \\ \" ] \" " ) +
+ HelpExampleCli ( " addmultisigaddress " , " 2 \" [ \\ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \\ \" , \\ \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \\ \" ] \" " ) +
" \n As json rpc call \n "
+ HelpExampleRpc ( " addmultisigaddress " , " 2, \" [ \\ \" t16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5 \\ \" , \\ \" t171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV \\ \" ] \" " )
+ HelpExampleRpc ( " addmultisigaddress " , " 2, \" [ \\ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \\ \" , \\ \" RNKiEBduBru6Siv1cZRVhp4fkZNyPska6z \\ \" ] \" " )
;
throw runtime_error ( msg ) ;
}
@ -1669,7 +1669,7 @@ UniValue listtransactions(const UniValue& params, bool fHelp)
" { \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name associated with the transaction. \n "
" It will be \" \" for the default account. \n "
" \" address \" : \" zcashaddress \" , (string) The Zcash address of the transaction. Not present for \n "
" \" address \" : \" komodoaddress \" , (string) The Komodo address of the transaction. Not present for \n "
" move transactions (category = move). \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 "
@ -1869,7 +1869,7 @@ UniValue listsinceblock(const UniValue& params, bool fHelp)
" { \n "
" \" transactions \" : [ \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name associated with the transaction. Will be \" \" for the default account. \n "
" \" address \" : \" zcashaddress \" , (string) The Zcash address of the transaction. Not present for move transactions (category = move).\n "
" \" address \" : \" komodoaddress \" , (string) The Komodo 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 "
" \" 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 "
@ -1968,7 +1968,7 @@ UniValue gettransaction(const UniValue& params, bool fHelp)
" \" details \" : [ \n "
" { \n "
" \" account \" : \" accountname \" , (string) DEPRECATED. The account name involved in the transaction, can be \" \" for the default account. \n "
" \" address \" : \" zcashaddress \" , (string) The Zcash address involved in the transaction\n "
" \" address \" : \" komodoaddress \" , (string) The Komodo address involved in the transaction\n "
" \" category \" : \" send|receive \" , (string) The category, either 'send' or 'receive' \n "
" \" amount \" : x.xxx (numeric) The amount in " + CURRENCY_UNIT + " \n "
" \" vout \" : n, (numeric) the vout value \n "
@ -2128,7 +2128,7 @@ UniValue walletpassphrase(const UniValue& params, bool fHelp)
throw runtime_error (
" walletpassphrase \" passphrase \" timeout \n "
" \n Stores the wallet decryption key in memory for 'timeout' seconds. \n "
" This is needed prior to performing transactions related to private keys such as sending Zcash \n "
" This is needed prior to performing transactions related to private keys such as sending Komodo \n "
" \n Arguments: \n "
" 1. \" passphrase \" (string, required) The wallet passphrase \n "
" 2. timeout (numeric, required) The time to keep the decryption key in seconds. \n "
@ -2242,7 +2242,7 @@ UniValue walletlock(const UniValue& params, bool fHelp)
" \n Set the passphrase for 2 minutes to perform a transaction \n "
+ HelpExampleCli ( " walletpassphrase " , " \" my pass phrase \" 120 " ) +
" \n Perform a send (requires passphrase set) \n "
+ HelpExampleCli ( " sendtoaddress " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 1.0 " ) +
+ HelpExampleCli ( " sendtoaddress " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" 1.0 " ) +
" \n Clear the passphrase since we are done before 2 minutes is up \n "
+ HelpExampleCli ( " walletlock " , " " ) +
" \n As json rpc call \n "
@ -2293,10 +2293,10 @@ UniValue encryptwallet(const UniValue& params, bool fHelp)
" \n Examples: \n "
" \n Encrypt you wallet \n "
+ HelpExampleCli ( " encryptwallet " , " \" my pass phrase \" " ) +
" \n Now set the passphrase to use the wallet, such as for signing or sending Zcash \n "
" \n Now set the passphrase to use the wallet, such as for signing or sending Komodo \n "
+ HelpExampleCli ( " walletpassphrase " , " \" my pass phrase \" " ) +
" \n Now we can so something like sign \n "
+ HelpExampleCli ( " signmessage " , " \" zcash address\" \" test message \" " ) +
+ HelpExampleCli ( " signmessage " , " \" komodo address\" \" test message \" " ) +
" \n Now lock the wallet again by removing the passphrase \n "
+ HelpExampleCli ( " walletlock " , " " ) +
" \n As a json rpc call \n "
@ -2344,7 +2344,7 @@ UniValue lockunspent(const UniValue& params, bool fHelp)
" lockunspent unlock [{ \" txid \" : \" txid \" , \" vout \" :n},...] \n "
" \n Updates list of temporarily unspendable outputs. \n "
" Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs. \n "
" A locked transaction output will not be chosen by automatic coin selection, when spending Zcash . \n "
" A locked transaction output will not be chosen by automatic coin selection, when spending Komodo . \n "
" Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list \n "
" is always cleared (by virtue of process exit) when a node stops or fails. \n "
" Also see the listunspent call \n "
@ -2579,9 +2579,9 @@ UniValue listunspent(const UniValue& params, bool fHelp)
" \n Arguments: \n "
" 1. minconf (numeric, optional, default=1) The minimum confirmations to filter \n "
" 2. maxconf (numeric, optional, default=9999999) The maximum confirmations to filter \n "
" 3. \" addresses \" (string) A json array of Zcash addresses to filter \n "
" 3. \" addresses \" (string) A json array of Komodo addresses to filter \n "
" [ \n "
" \" address \" (string) Zcash address \n "
" \" address \" (string) Komodo address \n "
" ,... \n "
" ] \n "
" \n Result \n "
@ -2590,7 +2590,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
" \" txid \" : \" txid \" , (string) the transaction id \n "
" \" vout \" : n, (numeric) the vout value \n "
" \" generated \" : true|false (boolean) true if txout is a coinbase transaction output \n "
" \" address \" : \" address \" , (string) the Zcash address \n "
" \" address \" : \" address \" , (string) the Komodo address \n "
" \" account \" : \" account \" , (string) DEPRECATED. The associated account, or \" \" for the default account \n "
" \" scriptPubKey \" : \" key \" , (string) the script key \n "
" \" amount \" : x.xxx, (numeric) the transaction amount in " + CURRENCY_UNIT + " \n "
@ -3230,7 +3230,7 @@ UniValue z_getnewaddress(const UniValue& params, bool fHelp)
" \n Returns a new zaddr for receiving payments. \n "
" \n Arguments: \n "
" \n Result: \n "
" \" zcash address\" (string) The new zaddr \n "
" \" komodo address\" (string) The new zaddr \n "
" \n Examples: \n "
+ HelpExampleCli ( " z_getnewaddress " , " " )
+ HelpExampleRpc ( " z_getnewaddress " , " " )
@ -3669,8 +3669,8 @@ UniValue z_sendmany(const UniValue& params, bool fHelp)
" \n Result: \n "
" \" operationid \" (string) An operationid to pass to z_getoperationstatus to get the result of the operation. \n "
" \n Examples: \n "
+ HelpExampleCli ( " z_sendmany " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" '[{ \" address \" : \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" , \" amount \" : 5.0}]' " )
+ HelpExampleRpc ( " z_sendmany " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" , [{ \" address \" : \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" , \" amount \" : 5.0}] " )
+ HelpExampleCli ( " z_sendmany " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" '[{ \" address \" : \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" , \" amount \" : 5.0}]' " )
+ HelpExampleRpc ( " z_sendmany " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" , [{ \" address \" : \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" , \" amount \" : 5.0}] " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -3828,7 +3828,7 @@ UniValue z_sendmany(const UniValue& params, bool fHelp)
CMutableTransaction contextualTx = CreateNewContextualCMutableTransaction ( Params ( ) . GetConsensus ( ) , nextBlockHeight ) ;
bool isShielded = ! fromTaddr | | zaddrRecipients . size ( ) > 0 ;
if ( contextualTx . nVersion = = 1 & & isShielded ) {
contextualTx . nVersion = 2 ; // Tx format should support vjoinsplits
contextualTx . nVersion = 2 ; // Tx format should support vjoinsplits
}
if ( NetworkUpgradeActive ( nextBlockHeight , Params ( ) . GetConsensus ( ) , Consensus : : UPGRADE_OVERWINTER ) ) {
contextualTx . nExpiryHeight = nextBlockHeight + expiryDelta ;
@ -3889,8 +3889,8 @@ UniValue z_shieldcoinbase(const UniValue& params, bool fHelp)
" \" opid \" : xxx (string) An operationid to pass to z_getoperationstatus to get the result of the operation. \n "
" } \n "
" \n Examples: \n "
+ HelpExampleCli ( " z_shieldcoinbase " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" " )
+ HelpExampleRpc ( " z_shieldcoinbase " , " \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" , \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" " )
+ HelpExampleCli ( " z_shieldcoinbase " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" " )
+ HelpExampleRpc ( " z_shieldcoinbase " , " \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" , \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" " )
) ;
LOCK2 ( cs_main , pwalletMain - > cs_wallet ) ;
@ -4023,7 +4023,7 @@ UniValue z_shieldcoinbase(const UniValue& params, bool fHelp)
CMutableTransaction contextualTx = CreateNewContextualCMutableTransaction (
Params ( ) . GetConsensus ( ) , nextBlockHeight ) ;
if ( contextualTx . nVersion = = 1 ) {
contextualTx . nVersion = 2 ; // Tx format should support vjoinsplits
contextualTx . nVersion = 2 ; // Tx format should support vjoinsplits
}
if ( NetworkUpgradeActive ( nextBlockHeight , Params ( ) . GetConsensus ( ) , Consensus : : UPGRADE_OVERWINTER ) ) {
contextualTx . nExpiryHeight = nextBlockHeight + expiryDelta ;
@ -4107,8 +4107,8 @@ UniValue z_mergetoaddress(const UniValue& params, bool fHelp)
" \" opid \" : xxx (string) An operationid to pass to z_getoperationstatus to get the result of the operation. \n "
" } \n "
" \n Examples: \n "
+ HelpExampleCli ( " z_mergetoaddress " , " '[ \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" ]' ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf " )
+ HelpExampleRpc ( " z_mergetoaddress " , " [ \" t1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" ], \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" " )
+ HelpExampleCli ( " z_mergetoaddress " , " '[ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" ]' ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf " )
+ HelpExampleRpc ( " z_mergetoaddress " , " [ \" RTZMZHDFSTFQst8XmX2dR4DaH87cEUs3gC \" ], \" ztfaW34Gj9FrnGUEf833ywDVL62NWXBM81u6EQnM6VR45eYnXhwztecW1SjxA7JrmAXKJhxhj3vDNEpVCQoSvVoSpmbhtjf \" " )
) ;
if ( ! fEnableMergeToAddress ) {