@ -303,8 +303,8 @@ static UniValue setlabel(const JSONRPCRequest& request)
} ,
RPCResults { } ,
RPCExamples {
HelpExampleCli ( " setlabel " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX \" \" tabby \" " )
+ HelpExampleRpc ( " setlabel " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX \" , \" tabby \" " )
HelpExampleCli ( " setlabel " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" \" tabby \" " )
+ HelpExampleRpc ( " setlabel " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" , \" tabby \" " )
} ,
} . Check ( request ) ;
@ -393,10 +393,10 @@ static UniValue sendtoaddress(const JSONRPCRequest& request)
RPCResult : : Type : : STR_HEX , " txid " , " The transaction id. "
} ,
RPCExamples {
HelpExampleCli ( " sendtoaddress " , " \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 " )
+ HelpExampleCli ( " sendtoaddress " , " \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 \" donation \" \" seans outpost \" " )
+ HelpExampleCli ( " sendtoaddress " , " \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 0.1 \" \" \" \" true " )
+ HelpExampleRpc ( " sendtoaddress " , " \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" , 0.1, \" donation \" , \" seans outpost \" " )
HelpExampleCli ( " sendtoaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" 0.1 " )
+ HelpExampleCli ( " sendtoaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" 0.1 \" donation \" \" seans outpost \" " )
+ HelpExampleCli ( " sendtoaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" 0.1 \" \" \" \" true " )
+ HelpExampleRpc ( " sendtoaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" , 0.1, \" donation \" , \" seans outpost \" " )
} ,
} . Check ( request ) ;
@ -596,13 +596,13 @@ static UniValue getreceivedbyaddress(const JSONRPCRequest& request)
} ,
RPCExamples {
" \n The amount from transactions with at least 1 confirmation \n "
+ HelpExampleCli ( " getreceivedbyaddress " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX \" " ) +
+ HelpExampleCli ( " getreceivedbyaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" " ) +
" \n The amount including unconfirmed transactions, zero confirmations \n "
+ HelpExampleCli ( " getreceivedbyaddress " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX \" 0 " ) +
+ HelpExampleCli ( " getreceivedbyaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" 0 " ) +
" \n The amount with at least 6 confirmations \n "
+ HelpExampleCli ( " getreceivedbyaddress " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX \" 6 " ) +
+ HelpExampleCli ( " getreceivedbyaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" 6 " ) +
" \n As a JSON-RPC call \n "
+ HelpExampleRpc ( " getreceivedbyaddress " , " \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX \" , 6 " )
+ HelpExampleRpc ( " getreceivedbyaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" , 6 " )
} ,
} . Check ( request ) ;
@ -841,13 +841,13 @@ static UniValue sendmany(const JSONRPCRequest& request)
} ,
RPCExamples {
" \n Send two amounts to two different addresses: \n "
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\ \" :0.01, \\ \" 1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz \\ \" :0.02} \" " ) +
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" :0.01, \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" :0.02} \" " ) +
" \n Send two amounts to two different addresses setting the confirmation and comment: \n "
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\ \" :0.01, \\ \" 1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz \\ \" :0.02} \" 6 \" testing \" " ) +
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" :0.01, \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" :0.02} \" 6 \" testing \" " ) +
" \n Send two amounts to two different addresses, subtract fee from amount: \n "
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\ \" :0.01, \\ \" 1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz \\ \" :0.02} \" 1 \" \" \" [ \\ \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\\ \" , \\ \" 1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz \\ \" ] \" " ) +
+ HelpExampleCli ( " sendmany " , " \" \" \" { \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" :0.01, \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" :0.02} \" 1 \" \" \" [ \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" , \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" ] \" " ) +
" \n As a JSON-RPC call \n "
+ HelpExampleRpc ( " sendmany " , " \" \" , { \" 1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XX\" :0.01, \" 1353tsE8YMTA4EuV7dgUXGjNFf9KpVvKHz \" :0.02}, 6, \" testing \" " )
+ HelpExampleRpc ( " sendmany " , " \" \" , { \" " + EXAMPLE_ADDRESS [ 0 ] + " \" :0.01, \" " + EXAMPLE_ADDRESS [ 1 ] + " \" :0.02}, 6, \" testing \" " )
} ,
} . Check ( request ) ;
@ -969,9 +969,9 @@ static UniValue addmultisigaddress(const JSONRPCRequest& request)
} ,
RPCExamples {
" \n Add a multisig address from 2 addresses \n "
+ HelpExampleCli ( " addmultisigaddress " , " 2 \" [ \\ \" 16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\\ \" , \\ \" 171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV \\ \" ] \" " ) +
+ HelpExampleCli ( " addmultisigaddress " , " 2 \" [ \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" , \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" ] \" " ) +
" \n As a JSON-RPC call \n "
+ HelpExampleRpc ( " addmultisigaddress " , " 2, \" [ \\ \" 16sSauSf5pF2UkUwvKGq4qjNRzBZYqgEL5\\ \" , \\ \" 171sgjn4YtPu27adkKGrdDwzRTxnRkBfKV \\ \" ] \" " )
+ HelpExampleRpc ( " addmultisigaddress " , " 2, \" [ \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" , \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" ] \" " )
} ,
} . Check ( request ) ;
@ -1214,7 +1214,7 @@ static UniValue listreceivedbyaddress(const JSONRPCRequest& request)
HelpExampleCli ( " listreceivedbyaddress " , " " )
+ HelpExampleCli ( " listreceivedbyaddress " , " 6 true " )
+ HelpExampleRpc ( " listreceivedbyaddress " , " 6, true, true " )
+ HelpExampleRpc ( " listreceivedbyaddress " , " 6, true, true, \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" " )
+ HelpExampleRpc ( " listreceivedbyaddress " , " 6, true, true, \" " + EXAMPLE_ADDRESS [ 0 ] + " \" " )
} ,
} . Check ( request ) ;
@ -2042,7 +2042,7 @@ static UniValue walletlock(const JSONRPCRequest& request)
" \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 " , " \" 1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd \" 1.0 " ) +
+ HelpExampleCli ( " sendtoaddress " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" 1.0 " ) +
" \n Clear the passphrase since we are done before 2 minutes is up \n "
+ HelpExampleCli ( " walletlock " , " " ) +
" \n As a JSON-RPC call \n "
@ -2859,8 +2859,8 @@ static UniValue listunspent(const JSONRPCRequest& request)
} ,
RPCExamples {
HelpExampleCli ( " listunspent " , " " )
+ HelpExampleCli ( " listunspent " , " 6 9999999 \" [ \\ \" 1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\\ \" , \\ \" 1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP \\ \" ] \" " )
+ HelpExampleRpc ( " listunspent " , " 6, 9999999 \" [ \\ \" 1PGFqEzfmQch1gKD3ra4k18PNj3tTUUSqg\\ \" , \\ \" 1LtvqCaApEdUGFkpKMM4MstjcaL4dKg8SP \\ \" ] \" " )
+ HelpExampleCli ( " listunspent " , " 6 9999999 \" [ \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" , \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" ] \" " )
+ HelpExampleRpc ( " listunspent " , " 6, 9999999 \" [ \\ \" " + EXAMPLE_ADDRESS [ 0 ] + " \\ \" , \\ \" " + EXAMPLE_ADDRESS [ 1 ] + " \\ \" ] \" " )
+ HelpExampleCli ( " listunspent " , " 6 9999999 '[]' true '{ \" minimumAmount \" : 0.005 }' " )
+ HelpExampleRpc ( " listunspent " , " 6, 9999999, [] , true, { \" minimumAmount \" : 0.005 } " )
} ,
@ -3798,8 +3798,8 @@ UniValue getaddressinfo(const JSONRPCRequest& request)
}
} ,
RPCExamples {
HelpExampleCli ( " getaddressinfo " , EXAMPLE_ADDRESS ) +
HelpExampleRpc ( " getaddressinfo " , EXAMPLE_ADDRESS )
HelpExampleCli ( " getaddressinfo " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" " ) +
HelpExampleRpc ( " getaddressinfo " , " \" " + EXAMPLE_ADDRESS [ 0 ] + " \" " )
} ,
} . Check ( request ) ;