The following RPCs return error fields (named "error"
or "errors"
) that are optional, but don’t show up as optional in the help text yet:
analyzepsbt
estimatesmartfee
signrawtransactionwithkey
signrawtransactionwithwallet
The following RPC has the errors field already marked as optional, but doesn’t match the usual format in the description (like "if there are any"
in parantheses):
estimaterawfee
This PR adds the missing optional flags and adapts the description strings. Inspired by a recent PR #19634 by justinmoon.
The instances were found via git grep "RPCResult.*\"error"
. Note that there is one RPC so far where the return error is not optional (i.e. in case of no error, the field is included in the result, but is just empty), namely bumpfee
.