Skip to content

Commit fa5c662

Browse files
author
MarcoFalke
committed
doc: Use proper RPC help syntax in importmulti
1 parent fab6311 commit fa5c662

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/wallet/rpcdump.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,19 @@ UniValue importmulti(const JSONRPCRequest& mainRequest)
13221322
"\"options\""},
13231323
},
13241324
RPCResult{
1325-
"\nResponse is an array with the same size as the input that has the execution result :\n"
1326-
" [{\"success\": true}, {\"success\": true, \"warnings\": [\"Ignoring irrelevant private key\"]}, {\"success\": false, \"error\": {\"code\": -1, \"message\": \"Internal Server Error\"}}, ...]\n"
1325+
"[ (json array) Response is an array with the same size as the input that has the execution result\n"
1326+
" { (json object)\n"
1327+
" \"success\" : true|false, (boolean)\n"
1328+
" \"warnings\" : [ (json array, optional)\n"
1329+
" \"str\", (string)\n"
1330+
" ...\n"
1331+
" ],\n"
1332+
" \"error\" : { (json object, optional)\n"
1333+
" ... JSONRPC error\n"
1334+
" },\n"
1335+
" },\n"
1336+
" ...\n"
1337+
"]\n"
13271338
},
13281339
RPCExamples{
13291340
HelpExampleCli("importmulti", "'[{ \"scriptPubKey\": { \"address\": \"<my address>\" }, \"timestamp\":1455191478 }, "

0 commit comments

Comments
 (0)