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 keyAccountMeta— compact account descriptor (p,s,w)Instruction— on-chain instruction (p,a,d)SwapMode—ExactInorExactOutClientRequest— request envelope withidanddataServerMessage—Response,Error,StreamData, orStreamEndResponseSuccess/ResponseError— success and error response typesStreamData/StreamEnd/StreamStart— stream lifecycle types
Server info types
Defined on GetInfo:
ServerInfo— protocol version and server settingsVersionInfo—major,minor,patchServerSettings— quote update, swap, transaction, and connection settingsBoundedValueWithDefault<T>—min,max,defaultQuoteUpdateSettings/SwapSettings/TransactionSettings/ConnectionSettings
Request types
Defined on NewSwapQuoteStream:
SwapQuoteRequest—swap+transaction+updateSwapParams— input/output mints, amount, slippage, routing filtersTransactionParams— wallet key, fee config, token account optionsTransactionFormat— numericV0/V1transaction wire format selectorTransactionConfigParams— transaction-level compute budget for Transaction V1 templatesTransactionTemplate— instructions, ALTs, account metas, and optional V1 transaction config used for route sizingQuoteUpdateParams— stream interval and quote count
Quote & stream data types
Defined on NewSwapQuoteStream:
SwapQuotes— quote batch with provider-keyedquotesmapSwapRoute— single route with instructions, ALTs, expiry, compute budgetRoutePlanStep— one hop in a multi-step routePlatformFee—amountandfee_bps
Discovery types
Defined on GetVenues / ListProviders:
VenueInfo— venue labels and optional program IDsProviderInfo— provider id, name, kind, optional iconProviderKind—"DexAggregator"or"RFQ"
Stop stream types
Defined on StopStream:
StopStreamRequest— stream ID to stopStopStreamResponse— confirmed stream ID
Related pages
Wire Protocol — encoding rules, common types, and message envelope types
Connection & Negotiation — WebSocket setup and authentication
NewSwapQuoteStream — request, response, and stream data types
GetInfo — server info and settings types
GetVenues / ListProviders — discovery types
StopStream — stop stream types
Last updated

