Skip to main content
avnu is Starknet’s liquidity infrastructure. We aggregate all DEXs, CLOBs, and market makers, then use competing solver algorithms to find optimal execution paths for every trade - solving complex routing problems in real-time while you focus on building your product.

Quick Start

1

Install SDK

npm install @avnu/avnu-sdk
2

Get a Quote

import { getQuotes } from '@avnu/avnu-sdk';
import { parseUnits } from 'ethers';

const quotes = await getQuotes({
  sellTokenAddress: ethAddress,
  buyTokenAddress: strkAddress,
  sellAmount: parseUnits('1', 18),
  takerAddress: account.address,
});
3

Execute Swap

import { executeSwap } from '@avnu/avnu-sdk';

const result = await executeSwap({
  provider: account,
  quote: quotes[0],
  slippage: 0.001
});

Complete Tutorial

Build a working swap integration in 5 minutes →

What You Can Build

Why Build on avnu?

Superior Execution

Competing solvers tackle NP-hard optimization problems in real-time, maximizing your users’ net output while minimizing slippage and gas costs.

All Liquidity in One API

Access every DEX, CLOB, and market maker on Starknet without managing multiple integrations or routing logic.

Better UX

Gasless swaps and pay-gas-in-any-token eliminate the need for users to hold ETH.

Production Ready

Battle-tested infrastructure trusted by major Starknet wallets and applications.

Development Environment

Prerequisites

  • Node.js and npm/yarn
  • Basic TypeScript knowledge

Networks

https://starknet.api.avnu.fiProduction environment

Rate Limits

Public API: 300 requests per 5 minutes Need higher limits? Join our developer group

Resources