suggestion
0@@ -40,13 +40,13 @@ static RPCHelpMan validateaddress()
1 RPCResult::Type::OBJ, "", "",
2 {
3 {RPCResult::Type::BOOL, "isvalid", "If the address is valid or not. If not, this is the only property returned."},
4- {RPCResult::Type::STR, "error_msg", "If the address is not valid this property contains a description of the error encountered while decoding the address."},
5 {RPCResult::Type::STR, "address", "The bitcoin address validated"},
6 {RPCResult::Type::STR_HEX, "scriptPubKey", "The hex-encoded scriptPubKey generated by the address"},
7 {RPCResult::Type::BOOL, "isscript", "If the key is a script"},
8 {RPCResult::Type::BOOL, "iswitness", "If the address is a witness address"},
9 {RPCResult::Type::NUM, "witness_version", /* optional */ true, "The version number of the witness program"},
10 {RPCResult::Type::STR_HEX, "witness_program", /* optional */ true, "The hex value of the witness program"},
11+ {RPCResult::Type::STR, "error", /* optional */ true, "Error message, if any"},
12 }
- add optional indication and move after the other optional result field
- simpler standard description
- “error” seems to be the generally used error field name in this api (see src/wallet/rpcwallet.cpp::L4485