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

SDK

Omniston SDK reference - TypeScript/JavaScript tools for building cross-chain liquidity aggregation

Software Development Kits for integrating Omniston liquidity aggregation across swap and order settlement flows.

Features

  • Best Price Discovery: Automatically finds optimal swap and order routes

  • Cross-chain Aggregation: Supports cross-chain settlement flows

  • Real-time Quotes: Live RFQ updates via WebSocket

  • Settlement-specific APIs: TON transaction builders and EVM order payload flows

  • Error Handling: Comprehensive error types and recovery

SDKs

We provide two packages for different use cases:

  • @ston-fi/omniston-sdk for direct SDK usage in backend services, bots, scripts, and custom application architectures

  • @ston-fi/omniston-sdk-react for React applications that want Omniston exposed as ready-to-use hooks

Node.js SDK

Use the Node.js SDK when you want direct access to the Omniston API surface and full control over request, quote, and settlement handling.

Key benefits:

  • Low-level access to RFQ, tracking, and settlement APIs

  • Direct Observable-based integration without React dependencies

  • Best fit for backend services, bots, server actions, and custom app architectures

  • Easier to build your own abstractions on top of the raw SDK primitives

Installation:

Quick start:

Detailed guide:

React SDK

Use the React SDK when you are building a React application and want Omniston exposed as ready-to-use hooks.

Key benefits:

  • React-first API built on top of the base SDK

  • TanStack Query integration for loading, caching, and stream-driven updates

  • Less boilerplate for binding RFQ, tracking, and settlement flows to UI state

  • Best fit for browser apps, wallet-connected UIs, and dashboards

Installation:

Quick start:

Detailed guide:

Last updated