For the complete documentation index, see llms.txt. This page is also available as Markdown.

Types Reference

Quick reference index for all Titan API types — links to the page where each type is defined.

All type definitions live inline on the page where they're used. This page is an index for quick navigation.

Field names are camelCase on the wire (MessagePack) unless otherwise specified. Rust SDK types use snake_case with serde renaming.


Wire protocol & common types

Defined on Wire Protocol:

  • Pubkey — 32-byte Solana public key

  • AccountMeta — compact account descriptor (p, s, w)

  • Instruction — on-chain instruction (p, a, d)

  • SwapModeExactIn or ExactOut

  • ClientRequest — request envelope with id and data

  • ServerMessageResponse, Error, StreamData, or StreamEnd

  • ResponseSuccess / ResponseError — success and error response types

  • StreamData / StreamEnd / StreamStart — stream lifecycle types


Server info types

Defined on GetInfo:

  • ServerInfo — protocol version and server settings

  • VersionInfomajor, minor, patch

  • ServerSettings — quote update, swap, transaction, and connection settings

  • BoundedValueWithDefault<T>min, max, default

  • QuoteUpdateSettings / SwapSettings / TransactionSettings / ConnectionSettings


Request types

Defined on NewSwapQuoteStream:

  • SwapQuoteRequestswap + transaction + update

  • SwapParams — input/output mints, amount, slippage, routing filters

  • TransactionParams — wallet key, fee config, token account options

  • TransactionFormat — numeric V0 / V1 transaction wire format selector

  • TransactionConfigParams — transaction-level compute budget for Transaction V1 templates

  • TransactionTemplate — instructions, ALTs, account metas, and optional V1 transaction config used for route sizing

  • QuoteUpdateParams — stream interval and quote count


Quote & stream data types

Defined on NewSwapQuoteStream:

  • SwapQuotes — quote batch with provider-keyed quotes map

  • SwapRoute — single route with instructions, ALTs, expiry, compute budget

  • RoutePlanStep — one hop in a multi-step route

  • PlatformFeeamount and fee_bps


Discovery types

Defined on GetVenues / ListProviders:

  • VenueInfo — venue labels and optional program IDs

  • ProviderInfo — provider id, name, kind, optional icon

  • ProviderKind"DexAggregator" or "RFQ"


Stop stream types

Defined on StopStream:

  • StopStreamRequest — stream ID to stop

  • StopStreamResponse — confirmed stream ID


Last updated