text-sizeTypeScript SDK

A TypeScript SDK for interacting with the Nexus DEX

Overview

The Nexus TypeScript SDK provides a simple interface for trading, accessing market data, and managing accounts on the Nexus DEX. This SDK supports both REST and WS API connections.

Features

  • Fully typed

  • Minimal dependencies

  • Integratable: Easy to use with wallet providers like viem or ethers

  • Documented: JSDoc annotations with usage examples

  • Tree-shaking friendly: Easily import only the API calls you need for minimal bundle size

Installation

NodeJS

npm i @nexus-xyz/nexus-ts-sdk
yarn add @nexus-xyz/nexus-ts-sdk
pnpm add @nexus-xyz/nexus-ts-sdk

Web

The SDK is fully browser-compatible. Integrate via CDN or bundle it with your application.

React Native / Expo

For React Native you need to import polyfills before importing the SDK:

Quick Start

Info Endpoint

Exchange Endpoint

Last updated