Appearance
Endpoints
Environments
Mainnet (default)
- Dashboard: mainnet.dash.flint.trade
- Public API:
https://mainnet.api.flint.trade - Authed API:
https://mainnet.makerapi.flint.trade - MCP server:
https://mainnet.mcp.flint.trade/mcp(public),https://mainnet.mcp.flint.trade/mcp/maker(maker) — see For LLMs
Devnet
- Dashboard: devnet.dash.flint.trade
- Public API:
https://devnet.api.flint.trade - Authed API:
https://devnet.makerapi.flint.trade - MCP server:
https://devnet.mcp.flint.trade/mcp(public),https://devnet.mcp.flint.trade/mcp/maker(maker) — see For LLMs
Listener architecture
The Flint spot DEX server binds two gRPC listeners so each can be fronted with a different ingress policy: a public CDN or cache for market data, and a stricter authenticated edge for maker and transaction RPCs:
| Listener | Default port | Services | Auth |
|---|---|---|---|
| Public | 50051 | MarketDataService, StatsService, HistoricalService, NodeService, AuthService | None; public. |
| Authed | 50052 | AuthService, MakerService, TxService, EscalationService, SessionService, SpreadProtectService | Bearer session token for all except AuthService's login RPCs; every service except AuthService also accepts a dashboard API key (x-api-key). |
AuthService is available on both listeners. The public listener is enough for login flows; makers also configure the authed listener because the tokens it mints are used by MakerService and TxService.
Overriding the endpoint
Every SDK names the deployment with a Cluster, which carries both listener URLs, the Solana RPC URL, and the program ids, so you never hardcode endpoints. The common case is Client.mainnet(); pass a Cluster only to target another network or a custom host: Cluster.mainnet(), Cluster.devnet(), or Cluster.custom(url), which uses one URL for both listeners until you call with_maker_api_url. To change one field of a known network, call with_api_url, with_maker_api_url, or with_rpc_url on its preset.
rust
use flint_sdk::Cluster;
use flint_sdk::spot::Client;
// Mainnet.
let client = Client::mainnet();
// Devnet — maker endpoint included.
let client = Client::devnet();
// The same thing from a `Cluster`, which `Maker` takes too.
let client = Client::connect(Cluster::devnet())?;
// Override only the public endpoint of a known network.
let client = Client::connect(Cluster::devnet().with_api_url("https://api.example.com"))?;
// Override only the authed endpoint of a known network. It's the one `Maker` uses.
let cluster = Cluster::devnet().with_maker_api_url("https://makerapi.example.com");
// Custom deployment — set both listeners explicitly.
let cluster = Cluster::custom("https://api.example.com")
.with_maker_api_url("https://makerapi.example.com");python
import flint
from flint import spot
# Mainnet.
client = spot.Client.mainnet()
# Devnet — maker endpoint included.
client = spot.Client.devnet()
# The same thing from a `Cluster`, which `spot.Maker.connect` takes too.
client = spot.Client.connect(flint.Cluster.devnet())
# Override only the public endpoint of a known network.
client = spot.Client.connect(flint.Cluster.devnet().with_api_url("https://api.example.com"))
# Override only the authed endpoint of a known network. It's the one `spot.Maker` uses.
cluster = flint.Cluster.devnet().with_maker_api_url("https://makerapi.example.com")
# Custom deployment — set both listeners explicitly.
cluster = flint.Cluster.custom("https://api.example.com").with_maker_api_url(
"https://makerapi.example.com"
)ts
import { Client, Maker } from "@superis-labs/flint/spot";
// Default: mainnet.
const market = Client.mainnet();
// Devnet: both surfaces take the cluster.
const devnetMarket = Client.devnet();
const devnetMaker = await Maker.connect({ cluster: "devnet", emailSession: auth });