Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.avnu.fi/llms.txt

Use this file to discover all available pages before exploring further.

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

Swap

Solver-optimized swaps that aggregate all liquidity sources and maximize net output through real-time multi-objective optimization.

DCA Orders

Recurring token purchases with automated execution.

Paymaster

Let users pay gas in any token, or sponsor transactions entirely.

Markets

Real-time prices, liquidity, and volume data.

Token List

Verified token metadata and contract addresses.

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

API Reference

REST API documentation

SDK

TypeScript/JavaScript SDK

Support

Telegram community