This PR adds a check for the vout value passed during the lockunspent
RPC call. The code verifies if a floating-point number is provided and returns a descriptive error message.
The primary goal of this change is to enhance the user experience by providing clear feedback on invalid parameters. Currently, when a floating-point value is passed for the vout
, it results in a vague “JSON integer out of range” error. This message is not descriptive and can lead to user confusion. By implementing this check, users will immediately understand that vout
must be strictly an integer.