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

Info / Venues / Providers

Server info, venues, and providers via REST.

Three lightweight endpoints for reading server configuration and discovering available venues and providers. All are simple GET requests you can issue at any time.

All responses are MessagePack-encoded. Set Accept: application/vnd.msgpack in your request headers.

AuthenticationAuthorization: Bearer <token> header or ?auth=<token> query param. See Connection & Negotiation for JWT details.


Info

GET /api/v1/info

Returns server settings, protocol version, and configurable parameter bounds. The REST equivalent of GetInfo. Call it to read the defaults and limits you'll need when configuring swap requests.

For full ServerInfo type definitions (including VersionInfo, ServerSettings, BoundedValueWithDefault, and all sub-types), see the GetInfo reference page.

Example

import { Decoder } from '@msgpack/msgpack';

// useBigInt64 required — 64-bit integer fields (amounts, timestamps)
const decoder = new Decoder({ useBigInt64: true });

// Fetch server info from the Gateway REST endpoint
const res = await fetch(
  `${process.env.TITAN_ENDPOINT}/api/v1/info`,
  {
    headers: {
      'Authorization': `Bearer ${process.env.TITAN_API_KEY}`,
      'Accept': 'application/vnd.msgpack',
    },
  }
);

// Decode the MessagePack response
const info = decoder.decode(new Uint8Array(await res.arrayBuffer())) as any;

// Protocol version — major changes are backwards-incompatible
console.log('Protocol version:', info.protocolVersion);

// Quote stream settings — use these bounds when configuring requests
console.log('Default update interval:', info.settings.quoteUpdate.intervalMs.default, 'ms');
console.log('Concurrent streams allowed:', info.settings.connection.concurrentStreams);

Venues

Returns the list of on-chain venues available for routing. Each label is a valid value for the dexes and excludeDexes query parameters on Quote Swap and Quote Price.

For full VenueInfo type definitions, see the GetVenues / ListProviders reference page.

Query parameters

  • includeProgramIds"true" to include the Solana program ID for each venue.

Example


Providers

Returns the list of active quote providers. Each id is a valid value for the providers query parameter on Quote Swap. Each provider independently competes to deliver the best-priced route.

For full ProviderInfo and ProviderKind type definitions, see the GetVenues / ListProviders reference page.

Query parameters

  • includeIcons"true" to include 48×48 icon URIs for each provider.

Example


Error responses

  • 400Invalid parameters. Malformed query parameter value.

  • 401Missing or invalid authentication token. Check your JWT and its claims.


Last updated