Steer Protocol
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

SurfacePurpose
sdk/src/errors.tsshared SDK error helpers
sdk/src/swapErrors.tsswap-specific decoding
sdk/src/events.tsevent parsing helpers
sdk/src/abis.tsevent 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.ts
  • sdk/src/swapErrors.ts
  • sdk/src/events.ts
  • quote-server/src/http.ts

On this page