You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The same error occurs when using the 'value' field instead of 'value_sats'. According to the Electrum source code, the line txin._trusted_value_sats = int(txin_dict.get('value', txin_dict['value_sats'])) should handle both value and value_sats fields in the inputs. However, it appears that neither of these fields is being processed correctly, causing the error.
Could you please provide guidance on how to properly use the 'value_sats' (or 'value') field in the inputs for the 'serialize' method in the Electrum JSON-RPC API.
Also, it would be helpful to make the error message that Electrum outputs more descriptive.
The text was updated successfully, but these errors were encountered:
While I do appreciate the logging, it is not what a regular user would try to find, read, and understand, if an error occurs while they are using Electrum through command line.
Although I can see you wrapped the value_sats retrieval in a try/catch block and added a more useful error message. Thank you!
I encountered an issue when using the 'value_sats' field in the inputs for the 'serialize' method in the Electrum JSON-RPC API.
Steps to reproduce:
Construct a JSON-RPC call to the 'serialize' method with the following structure:
Expected behavior:
The request should be processed successfully, and the 'value_sats' field should be used as the value in satoshis for the input.
Actual behavior:
The request fails with the following error message:
The same error occurs when using the 'value' field instead of 'value_sats'. According to the Electrum source code, the line
txin._trusted_value_sats = int(txin_dict.get('value', txin_dict['value_sats']))
should handle bothvalue
andvalue_sats
fields in the inputs. However, it appears that neither of these fields is being processed correctly, causing the error.Could you please provide guidance on how to properly use the 'value_sats' (or 'value') field in the inputs for the 'serialize' method in the Electrum JSON-RPC API.
Also, it would be helpful to make the error message that Electrum outputs more descriptive.
The text was updated successfully, but these errors were encountered: