Reference
Errors And Events
Where integrations should decode user-facing failures and protocol events.
This page points to the active error and event surfaces. Keep user-facing error copy close to decoded protocol causes, but do not expose secrets from server logs.
SDK Surfaces
| Surface | Purpose |
|---|---|
sdk/src/errors.ts | shared SDK error helpers |
sdk/src/swapErrors.ts | swap-specific decoding |
sdk/src/events.ts | event parsing helpers |
sdk/src/abis.ts | event ABI exports, including unsettled swap events |
Quote Server Surfaces
The quote server returns validation failures as QuoteRequestError and logs
structured quote_request_error records. Error logging redacts bearer tokens,
private-key-like fields, hex blobs, and URLs before writing the message.
Integration Rule
Apps should decode known SDK errors for the user, retain raw structured details for support, and avoid showing internal signer, token, URL, or key material in the browser.
Source Files
sdk/src/errors.tssdk/src/swapErrors.tssdk/src/events.tsquote-server/src/http.ts