Skip to content

Commit

Permalink
doc: Use proper RPC help syntax in importmulti
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Jan 23, 2020
1 parent fab6311 commit fa5c662
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/wallet/rpcdump.cpp
Expand Up @@ -1322,8 +1322,19 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
"\"options\""},
},
RPCResult{
"\nResponse is an array with the same size as the input that has the execution result :\n"
" [{\"success\": true}, {\"success\": true, \"warnings\": [\"Ignoring irrelevant private key\"]}, {\"success\": false, \"error\": {\"code\": -1, \"message\": \"Internal Server Error\"}}, ...]\n"
"[ (json array) Response is an array with the same size as the input that has the execution result\n"
" { (json object)\n"
" \"success\" : true|false, (boolean)\n"
" \"warnings\" : [ (json array, optional)\n"
" \"str\", (string)\n"
" ...\n"
" ],\n"
" \"error\" : { (json object, optional)\n"
" ... JSONRPC error\n"
" },\n"
" },\n"
" ...\n"
"]\n"
},
RPCExamples{
HelpExampleCli("importmulti", "'[{ \"scriptPubKey\": { \"address\": \"<my address>\" }, \"timestamp\":1455191478 }, "
Expand Down

0 comments on commit fa5c662

Please sign in to comment.