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
{{ message }}
Repository navigation
Ambiguous deserialization in TransactionsAPI.estimateTransactionFee for SOL (Multiple oneOf matches) #125
When calling com.fireblocks.sdk.api.TransactionsAPI.estimateTransactionFee specifically for SOL, the SDK throws the following deserialization error:
"2 classes match result, expected 1"
The issue stems from the oneOf definition for FeeBreakdown. The ObjectMapper attempts to deserialize the payload against both FeeBreakdownOneOf and FeeBreakdownOneOf1. Since the response JSON structure for SOL satisfies the requirements of both subtypes, the deserializer cannot determine the unique target class.
Currently, we have only confirmed this behavior with SOL, but it is likely to affect any other asset whose fee structure aligns with both generated model definitions.
The models for FeeBreakdown need to be restructured to ensure they are mutually exclusive, or the discriminator logic needs to be refined:
Activity
github-actions commentedon Feb 19, 2026
Thank you for raising this issue! We will look into it shortly.
Osc-ops-dev commentedon Mar 4, 2026
This issue was fixed in version 14.1.0 of the SDK, closing the issue