Error vs Warning
- Error (
destinationError): The destination is unusable (e.g., malformed checksum or C-address). No routing can be performed. - Warning (
warnings): The destination is technically valid, but there are issues the developer should know about (e.g., precision loss or redundant memos).
Severity Levels
The Warning Type (TypeScript)
Warnings are returned as a discriminated union, allowing for type-safe handling of specialized metadata.The destinationError Invariant
The Invariant: If
destinationError is present, all other fields (address, routingId, warnings) will be null, none, or empty.