diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -889,6 +889,7 @@ "If the transaction has a complete set of signatures"}, {RPCResult::Type::ARR, "errors", + /* optional */ true, "Script verification errors (if there are any)", { {RPCResult::Type::OBJ, @@ -2063,8 +2064,8 @@ "the PSBT have been filled"}, {RPCResult::Type::STR, "next", "Role of the next person that this psbt needs to go to"}, - {RPCResult::Type::STR, "error", - "Error message if there is one"}, + {RPCResult::Type::STR, "error", /* optional */ true, + "Error message (if there is one)"}, }}, RPCExamples{HelpExampleCli("analyzepsbt", "\"psbt\"")}} .Check(request); diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3942,6 +3942,7 @@ "If the transaction has a complete set of signatures"}, {RPCResult::Type::ARR, "errors", + /* optional */ true, "Script verification errors (if there are any)", { {RPCResult::Type::OBJ,