``` ## ParametersQuote request parameters Token address to sell (hex format) Token address to buy (hex format) Amount to sell in smallest unit. Either `sellAmount` or `buyAmount` required. Amount to buy in smallest unit. Either `sellAmount` or `buyAmount` required. Address that will execute the swap Number of quotes to return (1-5) Array of source names to exclude from routing Fee in basis points (e.g., 30n for 0.3%) Address to receive integrator fees (required when integratorFees is set) Your integration identifier for tracking Optional SDK configuration ## Returns Returns `PromiseCustom API base URL (default: `https://starknet.api.avnu.fi`) Custom Impulse API base URL for market data (default: `https://starknet.impulse.avnu.fi`) AbortSignal to cancel the request Public key for response verification ` - Array of quotes sorted by best output first. ### Quote Interface ```typescript theme={null} interface Quote { quoteId: string; sellTokenAddress: string; sellAmount: bigint; sellAmountInUsd: number; buyTokenAddress: string; buyAmount: bigint; buyAmountInUsd: number; fee: Fee; blockNumber?: number; chainId: string; expiry?: number | null; routes: Route[]; gasFees: bigint; // In FRI gasFeesInUsd?: number; priceImpact: number; sellTokenPriceInUsd?: number; buyTokenPriceInUsd?: number; exactTokenTo?: boolean; estimatedSlippage?: number; } ``` ### Fee Interface ```typescript theme={null} interface Fee { feeToken: string; avnuFees: bigint; avnuFeesInUsd: number; avnuFeesBps: bigint; integratorFees: bigint; integratorFeesInUsd: number; integratorFeesBps: bigint; } ``` ### Route Interface ```typescript theme={null} interface Route { name: string; address: string; percent: number; sellTokenAddress: string; buyTokenAddress: string; routeInfo?: Record; routes: Route[]; // Nested routes for multi-hop swaps alternativeSwapCount: number; } ``` ## Example ```typescript Basic Usage theme={null} import { getQuotes } from '@avnu/avnu-sdk'; import { parseUnits } from 'ethers'; const ETH = "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"; const USDC = "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"; const quotes = await getQuotes({ sellTokenAddress: ETH, buyTokenAddress: USDC, sellAmount: parseUnits('1', 18), takerAddress: account.address, }); console.log('Best quote:', quotes[0].buyAmount); console.log('Routes:', quotes[0].routes); ``` ```typescript Multiple Quotes theme={null} // Get top 3 quotes to compare const quotes = await getQuotes({ sellTokenAddress: ETH, buyTokenAddress: USDC, sellAmount: parseUnits('10', 18), takerAddress: account.address, size: 3, }); quotes.forEach((quote, i) => { console.log(`Quote ${i + 1}:`, quote.buyAmount); }); ``` ```typescript With Integrator Fees theme={null} const quotes = await getQuotes({ sellTokenAddress: ETH, buyTokenAddress: USDC, sellAmount: parseUnits('1', 18), takerAddress: account.address, integratorFees: 30n, // 0.3% fee integratorFeeRecipient: '0x...', integratorName: 'MyDeFiApp', }); ``` ```typescript Buy Exact Amount theme={null} // Specify how much you want to buy instead of sell const quotes = await getQuotes({ sellTokenAddress: ETH, buyTokenAddress: USDC, buyAmount: parseUnits('1000', 6), // Buy exactly 1000 USDC takerAddress: account.address, }); console.log('You need to sell:', quotes[0].sellAmount, 'ETH'); ``` ## Quote Response ```typescript theme={null} { quoteId: "abc123def456", sellTokenAddress: "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", sellAmount: 1000000000000000000n, sellAmountInUsd: 3245.12, buyTokenAddress: "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", buyAmount: 3250450000n, buyAmountInUsd: 3250.45, fee: { feeToken: "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8", avnuFees: 0n, avnuFeesInUsd: 0, avnuFeesBps: 0n, integratorFees: 0n, integratorFeesInUsd: 0, integratorFeesBps: 0n }, chainId: "0x534e5f4d41494e", priceImpact: 0.0016, gasFees: 15000n, gasFeesInUsd: 0.05, routes: [ { name: "JediSwap", address: "0x...", percent: 60, sellTokenAddress: "0x049d...", buyTokenAddress: "0x053c...", routes: [], alternativeSwapCount: 0 }, { name: "Ekubo", address: "0x...", percent: 40, sellTokenAddress: "0x049d...", buyTokenAddress: "0x053c...", routes: [], alternativeSwapCount: 0 } ] } ``` ## Best Practices## Related For the most reliable trading experience, always use the avnu Token List to filter for verified tokens. This avoids scams and ensures compatibility. **SDK Method:** ```typescript theme={null} import { fetchTokens } from '@avnu/avnu-sdk'; // Fetch verified tokens const tokens = await fetchTokens({ tags: ['Verified'], page: 0, size: 100 }); ``` With Starknet's block time of \~2 seconds, the likelihood of a quote becoming stale increases exponentially with each passing block. For the highest success rate, refresh quotes every block before execution. The SDK uses native `bigint` for all token amounts. Use `parseUnits()` from ethers to convert decimal amounts: ```typescript theme={null} import { parseUnits } from 'ethers'; // Convert 1.5 ETH (18 decimals) to bigint const amount = parseUnits('1.5', 18); ``` ```typescript theme={null} const quotes = await getQuotes({...}); if (quotes.length === 0) { console.error('No routes found for this token pair'); return; } ``` Always include your app name for better support: ```typescript theme={null} const quotes = await getQuotes({ // ... other params integratorName: 'MyDeFiApp' }); ``` Execute the swap using a quote # Overview Source: https://docs.avnu.fi/docs/swap/index Best-price swaps across all Starknet liquidity avnu aggregates every liquidity source on Starknet (AMMs, CLOBs, and market makers) and uses competing solver algorithms to find the best execution path for your trade. Each solver tackles a complex optimization problem: splitting trades across hundreds of potential routes while balancing price impact, gas costs, slippage dynamics, and transaction success probability. We run multiple strategies in parallel, benchmark against direct market maker quotes, and select the solution that maximizes your net output.Build a working swap implementation in 5 minutes → ## SDK Methods ### Data Fetching * `getQuotes(request)` - Fetch optimized swap quotes ### Simple Integration * `executeSwap(params)` - Complete swap with automatic approvals ### Advanced Integration * `quoteToCalls(quote, slippage, takerAddress)` - Build swap calls for custom execution ```typescript theme={null} // Simple integration const quotes = await getQuotes({ ... }); const result = await executeSwap({ provider: account, quote: quotes[0], slippage: 100 // 1% }); // Advanced: compose with other operations const swapCalls = quoteToCalls(quote, slippage, account.address); const otherCalls = [...]; await account.execute([...swapCalls, ...otherCalls]); ``` ## How Solvers Work Finding the optimal trade route on Starknet is a complex challenge. With tens of thousands of liquidity pools, varying gas costs, and fragmented liquidity across AMMs, CLOBs, and market makers, identifying the absolute best price is a non-trivial mathematical problem.## SDK Integration For every trade, the solver must navigate a vast search space: * **Fragmented Liquidity:** Liquidity is split across multiple protocols and pools. * **Gas vs. Price:** A better price might cost more in gas. The solver must calculate the *net* benefit. * **Multi-Hop Routing:** Direct swaps aren't always best. Sometimes routing through 2 or 3 intermediate tokens yields a higher output. * **Real-Time Constraints:** Market conditions change in milliseconds. This is an **NP-hard optimization problem**. There is no simple formula to solve it. It requires sophisticated infrastructure to explore millions of possibilities in real-time. We have spent years building and refining our solver infrastructure to handle this complexity for you. * **Comprehensive Aggregation:** We integrate every significant liquidity source on Starknet. * **Advanced Optimization:** Our solvers run competing strategies in parallel to find the global maximum for your trade. * **Battle-Tested:** We power a significant portion of Starknet's trading volume, ensuring reliability and execution quality. * **Zero Maintenance:** You get best-in-class execution without maintaining your own indexers or routing logic. **Trade:** 10 ETH → USDC **Naive approach (single pool):** * Output: 32,450 USDC * Price impact: 0.8% **avnu Solver (optimized split):** * Splits trade across multiple pools (e.g., 60% Pool A, 40% Pool B) * Uses multi-hop routes when beneficial * Output: 32,612 USDC * Price impact: 0.3% **Result:** +\$162 better execution ```typescript Complete Example theme={null} import { RpcProvider, Account } from 'starknet'; import { getQuotes, executeSwap } from '@avnu/avnu-sdk'; import { parseUnits } from 'ethers'; const provider = new RpcProvider({ nodeUrl: 'https://rpc.starknet.lava.build:443' }); const account = new Account( provider, process.env.ACCOUNT_ADDRESS!, process.env.PRIVATE_KEY! ); const ethAddress = "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"; const usdcAddress = "0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8"; // Fetch solver-optimized quotes const quotes = await getQuotes({ sellTokenAddress: ethAddress, buyTokenAddress: usdcAddress, sellAmount: parseUnits('1', 18), takerAddress: account.address, }); console.log('Solver route:'); quotes[0].routes.forEach(route => { console.log(` ${route.percent}% via ${route.name}`); }); // Execute with optimized routing const result = await executeSwap({ provider: account, quote: quotes[0], slippage: 0.001 }); await provider.waitForTransaction(result.transactionHash); console.log('✅ Swap complete:', result.transactionHash); ``` ```typescript Exclude Sources theme={null} const quotes = await getQuotes({ sellTokenAddress: ethAddress, buyTokenAddress: usdcAddress, sellAmount: parseUnits('1', 18), takerAddress: account.address, excludeSources: ['10kSwap', 'SithSwap'], }); ``` ## Understanding Quote Response ```typescript theme={null} { "blockNumber": "0x0", "quoteId": "abc123", "sellTokenAddress": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", "sellAmount": "1000000000000000000", "buyAmount": "3250450000", // Optimized output "buyAmountInUsd": 3250.45, "sellAmountInUsd": "3251", "priceImpact": 20, // 0.2% price impact "gasFees": "0x1234", "gasFeesInUsd": 0.15, "fee": { "feeToken": "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7", "avnuFees": "0x1234", "avnuFeesInUsd": 0.012, "avnuFeesBps": 15, "integratorFees": "0x0", "integratorFeesInUsd": 0, "integratorFeesBps": 0 }, "routes": [ { "percent": 60, "name": "JediSwap", "sellAmount": "600000000000000000", "buyAmount": "1950270000" }, { "percent": 40, "name": "Ekubo", "sellAmount": "400000000000000000", "buyAmount": "1300180000" } ] } ``` **Key metrics:** * `buyAmount`: Maximum output after solver optimization * `priceImpact`: Price impact (lower is better) * `gasFeesInUsd`: Total gas cost including all hops * `routes`: How the solver split your trade**Quote Expiration:** With Starknet's block time of \~2 seconds, quotes become stale after just 1 block. The more blocks that pass, the higher the probability your quote is outdated. Refresh quotes every block before execution to ensure accuracy. ## Advanced Features## API Reference Earn revenue on every swap through your integration Complete HTTP endpoint reference, authentication, and request/response formats # Fetch Tokens Source: https://docs.avnu.fi/docs/tokens/fetch-tokens Get token list with filtering and search using the SDK ## Overview Fetch exchangeable tokens from avnu with optional filtering by tags and search. The SDK handles pagination and response parsing automatically. ## SDK Method ```typescript theme={null} fetchTokens( request?: GetTokensRequest, options?: AvnuOptions ): Promise> ``` ## Parameters Optional request parameters Page number for pagination Number of tokens per page (max 1000) Search by token name or symbol Filter by tags: `Verified`, `Community`, `Unruggable`, `AVNU`, `Unknown` Optional SDK configuration ## Returns Returns `PromiseCustom API base URL Public key for response verification >` - Paginated response with token list. ```typescript theme={null} interface Page { content: Token[]; totalPages: number; totalElements: number; size: number; number: number; } type TokenTag = 'Unknown' | 'Verified' | 'Community' | 'Unruggable' | 'AVNU'; interface Token { address: string; name: string; symbol: string; decimals: number; logoUri: string | null; lastDailyVolumeUsd: number; extensions: { [key: string]: string }; tags: TokenTag[]; } ``` ## Examples ```typescript Fetch All Tokens theme={null} import { fetchTokens } from '@avnu/avnu-sdk'; // Get first 100 tokens const result = await fetchTokens(); console.log(`Total tokens: ${result.totalElements}`); console.log(`Tokens on this page: ${result.content.length}`); result.content.forEach(token => { console.log(`${token.symbol}: ${token.name}`); console.log(` Address: ${token.address}`); console.log(` Tags: ${token.tags.join(', ')}`); }); ``` ```typescript Filter by Tags theme={null} import { fetchTokens } from '@avnu/avnu-sdk'; // Get only verified tokens const verifiedTokens = await fetchTokens({ tags: ['Verified'] }); console.log(`Found ${verifiedTokens.content.length} verified tokens`); ``` ```typescript Search Tokens theme={null} import { fetchTokens } from '@avnu/avnu-sdk'; // Search for USDC-related tokens const usdcTokens = await fetchTokens({ search: 'USDC', size: 10 }); usdcTokens.content.forEach(token => { console.log(`${token.symbol} - ${token.name}`); }); ``` ## Token Tags Available tags to filter tokens: | Tag | Description | | ------------ | ---------------------------------------------------- | | `Verified` | Manually verified by avnu team | | `Community` | Community-approved (3+ avnu Working Group approvals) | | `Unruggable` | Unruggable memecoin | | `AVNU` | avnu team verified token | | `Unknown` | Token without verification status | ## Related# Overview Source: https://docs.avnu.fi/docs/tokens/index Community-verified token data for all Starknet ERC20 tokens ## The Most Comprehensive Token API on Starknet Access real-time data on every tradable ERC20 token with community verification, enriched metadata, and safety scores. Learn about verification and token tags REST API endpoint documentation ## Quick Start 7-member avnu Working Group reviews every token Every new token indexed the moment it appears on-chain Logos, tags, verification status, and more ```typescript Fetch All Tokens theme={null} import { fetchTokens } from '@avnu/avnu-sdk'; const page = await fetchTokens({ page: 0, size: 100 }); page.content.forEach(token => { console.log({ name: token.name, symbol: token.symbol, address: token.address, verified: token.tags.includes('Community') || token.tags.includes('AVNU'), logo: token.logoUri, }); }); ``` ## Token Tags A token can include tags: * **Verified** - Tokens that include the tag `Community` or `AVNU` * **Unknown** - Untagged tokens that user must import to swap on app.avnu.fi. Tokens would either be Verified or Unknown. * **Community** - Tokens that are verified by the avnu community * **avnu** - Tokens that are verified by the avnu team * **Unruggable** - Unruggable memecoin [https://www.unruggable.meme/](https://www.unruggable.meme/)**Duplicate Handling:** If multiple tokens share the same name or symbol, they are all displayed by default. However, if one of these tokens is `Verified`, only the verified version will be returned, and all `Unknown` duplicates will be hidden. This policy helps prevent confusion and protects users from potential scams or impersonations. ### Sorting Tokens are sorted by `lastDailyVolumeUsd` desc (non verified tokens don't have lastDailyVolumeUsd), `Verified`, tokens with `logoUri`, `Unruggable` and by name asc. ## Verify Your TokenGet your token reviewed by the avnu Working Group → ### What is the avnu Working Group? The **avnu Working Group** is a group of 7 trusted community members who review token submissions to ensure user safety. Tokens need **3+ approvals** to receive the `Community` verification tag. ### Two Verification Paths 1. **Community Verification** - Submit at [community.avnu.fi](https://community.avnu.fi) * Requires minimum \$20K TVL and \$2K daily volume * Reviewed by avnu Working Group members * Typically approved within 24-48 hours * Receives `Community` tag 2. **avnu Verification** - For major launches * Contact the avnu team on [Telegram](https://t.me/avnu_developers) for expedited verification * Direct review by avnu team * Ideal for high-profile token launches needing immediate support * Receives `AVNU` tagBig launch coming up? The avnu team can manually verify tokens for major projects. Reach out on [Telegram](https://t.me/avnu_developers) for priority review. ## Performance OptimizationUse `If-None-Match` and `etag` headers to check if resources have changed. The server returns `304 Not Modified` if unchanged, saving bandwidth and improving load times. ## Rate Limits **Public API:** 300 requests per 5 minutes (free, no API key required) Need higher rate limits? Contact us on [Telegram](https://t.me/avnu_developers) for custom limits available to integration partners. ## FAQ## Related Real-time. New tokens and approvals appear within minutes. No. The Token List API is completely free and public. **AVNU:** Tokens verified by the avnu **Community:** Tokens verified by the avnu community **Unruggable:** Unruggable memecoins from unruggable.meme Tokens with `AVNU` or `Community` tags are considered "Verified" Yes! Join [Telegram](https://t.me/avnu_developers) to suggest improvements. # Your First Swap Source: https://docs.avnu.fi/get-started/first-swap Build a working token swap in 5 minutes ## What You'll Accomplish By the end of this guide, you'll have: * ✅ Installed the avnu SDK * ✅ Fetched the best swap quote * ✅ Executed a token swap on Starknet ## Prerequisites Trade verified tokens with best execution Submit and review tokens Complete endpoint documentation ## Step 1: Install the SDK Download from [nodejs.org](https://nodejs.org/) ```bash npm theme={null} npm install @avnu/avnu-sdk ``` ```bash yarn theme={null} yarn add @avnu/avnu-sdk ``` ```bash pnpm theme={null} pnpm add @avnu/avnu-sdk ``` ## Step 2: Initialize Your Account ```typescript theme={null} import { RpcProvider, Account } from 'starknet'; // Setup provider & account from starknet.js const provider = new RpcProvider({ nodeUrl: 'https://rpc.starknet.lava.build:443' }); const account = new Account( provider, 'YOUR_ACCOUNT_ADDRESS', 'YOUR_PRIVATE_KEY' ); // Or use hook from starknet-react const { account } = useAccount(); ```**Security Note:** Never hardcode private keys in production. ## Step 3: Fetch Swap Quotes ```typescript theme={null} import { getQuotes } from '@avnu/avnu-sdk'; import { parseUnits } from 'ethers'; const ethAddress = "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"; const strkAddress = "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"; const quotes = await getQuotes({ sellTokenAddress: ethAddress, buyTokenAddress: strkAddress, sellAmount: parseUnits('0.001', 18), // 0.001 ETH takerAddress: account.address, size: 3, // Get top 3 quotes (optional, default: 1) excludeSources: [], // Exclude specific DEXs (optional) }); console.log('Best quote:', quotes[0]); console.log('Estimated output:', quotes[0].buyAmount); console.log('Gas fees:', quotes[0].gasFees); console.log('Route:', quotes[0].routes); ```**Optional Parameters:** * `size`: Number of quotes to return (default: 1) * `excludeSources`: Array of source names to exclude * `integratorFees`: Your integration fees in bps * `integratorFeeRecipient`: Address to receive fees * `integratorName`: Your platform name * `onlyDirect`: if you want only direct routes ## Step 4: Execute the Swap ```typescript theme={null} import { executeSwap } from '@avnu/avnu-sdk'; const result = await executeSwap({ provider: account, quote: quotes[0], slippage: 0.001, // 0.1% slippage tolerance }); console.log('Transaction hash:', result.transactionHash); ```**Default Behavior:** * `executeApprove: true` - Automatically approves token spending if needed * `slippage` - Required parameter for price protection * Reverts if price moves beyond slippage tolerance ## Complete Example```typescript Complete Code theme={null} import { RpcProvider, Account } from 'starknet'; import { getQuotes, executeSwap } from '@avnu/avnu-sdk'; import { parseUnits, formatUnits } from 'ethers'; const ethAddress = "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"; const strkAddress = "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"; async function main() { // Setup provider & account from starknet.js const provider = new RpcProvider({ nodeUrl: 'https://rpc.starknet.lava.build:443' }); const account = new Account( provider, process.env.ACCOUNT_ADDRESS!, process.env.PRIVATE_KEY! ); // Fetch quotes const quotes = await getQuotes({ sellTokenAddress: ethAddress, buyTokenAddress: strkAddress, sellAmount: parseUnits('0.001', 18), takerAddress: account.address, }); console.log(`Buying ${formatUnits(quotes[0].buyAmount, 18)} STRK`); // Execute swap const result = await executeSwap({ provider: account, quote: quotes[0], slippage: 0.001, // 0.1% }); // Wait for confirmation await provider.waitForTransaction(result.transactionHash); console.log('✅ Done:', result.transactionHash); } main().catch(console.error); ``` ```typescript With Integration Fees theme={null} import { RpcProvider, Account } from 'starknet'; import { getQuotes, executeSwap } from '@avnu/avnu-sdk'; import { parseUnits } from 'ethers'; const ethAddress = "0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7"; const strkAddress = "0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d"; async function main() { const provider = new RpcProvider({ nodeUrl: 'https://rpc.starknet.lava.build:443' }); const account = new Account( provider, process.env.ACCOUNT_ADDRESS!, process.env.PRIVATE_KEY! ); // Fetch quotes with integration fees const quotes = await getQuotes({ sellTokenAddress: ethAddress, buyTokenAddress: strkAddress, sellAmount: parseUnits('0.001', 18), takerAddress: account.address, integratorFees: 10n, // 0.1% fee (10 bps) integratorFeeRecipient: '0xYOUR_FEE_RECIPIENT', integratorName: 'MyDApp', }); const result = await executeSwap({ provider: account, quote: quotes[0], slippage: 0.01, // 1% }); await provider.waitForTransaction(result.transactionHash); console.log('✅ Swap complete:', result.transactionHash); } main().catch(console.error); ``` ```env Environment Variables theme={null} ACCOUNT_ADDRESS=0x... PRIVATE_KEY=0x... ``` ## Next Steps## Resources Sponsor gas or multi-token gas payments Complete REST API docs Add automated recurring buys # Overview Source: https://docs.avnu.fi/get-started/overview Start building with avnu in minutes 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 REST API documentation TypeScript/JavaScript SDK Telegram community ```bash theme={null} npm install @avnu/avnu-sdk ``` ```typescript theme={null} 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, }); ``` ```typescript theme={null} import { executeSwap } from '@avnu/avnu-sdk'; const result = await executeSwap({ provider: account, quote: quotes[0], slippage: 0.001 }); ``` Build a working swap integration in 5 minutes → ## What You Can Build## Why Build on avnu? Solver-optimized swaps that aggregate all liquidity sources and maximize net output through real-time multi-objective optimization. Recurring token purchases with automated execution. Let users pay gas in any token, or sponsor transactions entirely. Real-time prices, liquidity, and volume data. Verified token metadata and contract addresses. ## Development Environment ### Prerequisites * Node.js and npm/yarn * Basic TypeScript knowledge ### Networks Competing solvers tackle NP-hard optimization problems in real-time, maximizing your users' net output while minimizing slippage and gas costs. Access every DEX, CLOB, and market maker on Starknet without managing multiple integrations or routing logic. Gasless swaps and pay-gas-in-any-token eliminate the need for users to hold ETH. Battle-tested infrastructure trusted by major Starknet wallets and applications. ### Rate Limits Public API: **300 requests per 5 minutes** Need higher limits? [Join our developer group](https://t.me/avnu_developers) ## Resources `https://starknet.api.avnu.fi` Production environment `https://sepolia.api.avnu.fi` Test environment # avnu - Your All-in-One Trading Hub on Starknet Source: https://docs.avnu.fi/introduction REST API documentation TypeScript/JavaScript SDK Telegram community # AI Integration Source: https://docs.avnu.fi/resources/ai-integration Use avnu Developers documentation with AI coding assistants ## MCP Server Access the entire avnu Developers documentation through Anthropic's Model Context Protocol (MCP) for seamless AI-assisted development.Your All-in-One Trading Hub on StarknetBuild or Trade with avnuBest trading execution, DCA, paymaster, token lists & more - everything you need in one platform50+IntegrationsTrusted by leading protocols\$3B+VolumeAll-time trading volume#1DEX AggregatorOn StarknetStart with Best-Price SwapsCompeting solver algorithms solve NP-hard optimization problems in real-time to maximize net output Solvers tackle NP-hard optimization problems in real-time to maximize your net output.Aggregates all liquidity sources: AMMs, CLOBs, and market makers across Starknet.Smart routing splits trades across hundreds of potential routes while minimizing slippage and gas.Battle-tested infrastructure trusted by major Starknet wallets and applications.Zero infrastructure required - we handle all the complexity.Integrate swaps via REST API for full customization and control. Get started in 5 minutes with our TypeScript SDK. ```typescript SDK theme={null} import { getQuotes, executeSwap } from '@avnu/avnu-sdk'; import { parseUnits } from 'ethers'; // Get best quote const quotes = await getQuotes({ sellTokenAddress: usdcAddress, buyTokenAddress: strkAddress, sellAmount: parseUnits('1000', 6), // 1000 USDC takerAddress: account.address, }); // Execute swap const result = await executeSwap({ provider: account, quote: quotes[0], slippage: 0.001, // 0.1% }); ``` ```bash API theme={null} curl -X POST "https://starknet.api.avnu.fi/v3/swap/quotes" \ -H "Content-Type: application/json" \ -d '{ "sellTokenAddress": "0x053c...", "buyTokenAddress": "0x04718...", "sellAmount": "1000000000", "takerAddress": "0x..." }' ``` Your Complete Trading ToolkitAll the tools you need to build or trade on Starknet - in one placeSolver-optimized swaps that tackle complex routing problems in real-time to maximize net output. Recurring token purchases with automated execution and flexible scheduling. Let users pay gas in any token, or sponsor their transactions entirely. Real-time prices, liquidity depth, and volume data for all Starknet tokens. Verified token metadata, logos, and contract addresses. Smart contracts, audits, and integration guides. Trusted by Leading Protocols![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
50+ integratorsGet direct support from our engineering team. Stay updated with the latest announcements. Ready to Get Started?Whether you're building the next big DeFi app or looking for the best trades on Starknet, avnu has you coveredUse this MCP endpoint with Claude Desktop, Claude Code, or any MCP-compatible AI tool ### Available Tools The MCP server provides the following tools:## LLMs.txt Files We provide machine-readable documentation files following the [llms.txt standard](https://llmstxt.org/) for direct AI consumption: Search across the avnu Developers knowledge base to find relevant information, code examples, API references, and guides. Use this tool when you need to: * Answer questions about avnu Developers * Find specific documentation * Understand how features work * Locate implementation details The search returns contextual content with titles and direct links to the documentation pages. ## Context7 [Context7](https://context7.com/) injects up-to-date documentation directly into your LLM prompts. Just say "use context7" and it fetches the latest docs automatically. ### Install **Compact index** - A structured list of all documentation pages with titles, descriptions, and URLs. Perfect for AI tools to understand what's available. **Full content** - Complete documentation content in a single file. Ideal for feeding entire docs context to LLMs. ### Use with avnu Add "use context7" to any prompt: ```text theme={null} Build a token swap using avnu SDK. use context7 ``` ```text theme={null} How do I integrate avnu paymaster for gasless transactions? use context7 ``` Context7 will fetch the latest avnu documentation and inject it into context. ## Setup Instructions ```bash theme={null} claude mcp add context7 -- npx -y @upstash/context7-mcp@latest ``` Add to `~/.cursor/mcp.json`: ```json theme={null} { "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@latest"] } } } ``` Add to `claude_desktop_config.json`: ```json theme={null} { "mcpServers": { "context7": { "command": "npx", "args": ["-y", "@upstash/context7-mcp@latest"] } } } ``` ## Example Queries Once connected, you can ask your AI assistant questions like: Add the MCP server to your Claude Desktop configuration: ```json macOS theme={null} { "mcpServers": { "avnu-docs": { "url": "https://docs.avnu.fi/mcp" } } } ``` ```json Windows theme={null} { "mcpServers": { "avnu-docs": { "url": "https://docs.avnu.fi/mcp" } } } ``` **Configuration file location:** * macOS: `~/Library/Application Support/Claude/claude_desktop_config.json` * Windows: `%APPDATA%\Claude\claude_desktop_config.json`The MCP server can be used directly in Claude Code IDE extension: 1. Open your project in VS Code with Claude Code installed 2. Add MCP server configuration to `.claude/settings.json`: ```json theme={null} { "mcpServers": { "avnu-docs": { "url": "https://docs.avnu.fi/mcp" } } } ``` 3. Claude Code will automatically connect to the MCP server 4. Use natural language to query avnu documentation while coding Check out the `.claude/commands/` directory in your project for pre-built prompts specific to avnu development. Enable the avnu documentation in Cursor AI: 1. Open Cursor Settings 2. Navigate to AI Settings → MCP 3. Add the MCP server: ``` https://docs.avnu.fi/mcp ``` 4. Restart Cursor to apply changes ## Benefits of AI-Assisted Development "How do I get a swap quote from avnu?" "Show me how to use the paymaster API" "Build a swap integration with TypeScript" "How do I stake STRK tokens?" "Why am I getting insufficient balance error?" "How do slippage settings work?" "What's the best way to handle integrator fees?" "How should I optimize gas for swaps?" ## Feedback & Support Get instant answers to questions without leaving your code editor Generate boilerplate code for common integration patterns Learn recommended approaches directly from documentation Quickly troubleshoot issues with contextual help Explore features and capabilities through natural language Access the latest documentation automatically Share feedback on AI integration and get help from the avnu team # Brand Kit Source: https://docs.avnu.fi/resources/brand-kit avnu logos and brand guidelines ## avnu Brand Assets Download official avnu logos and brand guidelines.Complete package with logos in all formats ## Logo Variations ### Wordmark (Recommended) The avnu wordmark is our primary logo for most use cases including websites, presentations, and marketing materials.### Logo Elements The abstract logo elements work best for profile pictures, app icons, and compact spaces. ![]()
![]()
![]()
![]()
### Alt Logo Elements Alternative logo variations for specific use cases. ![]()
![]()
![]()
## Brand Colors ![]()
![]()
## Usage Guidelines * Use official logos from the brand kit * Maintain clear space around logo * Include "Powered by avnu" attribution * Don't modify logo colors or proportions ## Questions? Join our [Telegram community](https://t.me/avnu_fi) or contact [brand@avnu.fi](mailto:brand@avnu.fi) for custom assets or co-marketing opportunities. # Contracts & Audits Source: https://docs.avnu.fi/resources/contracts avnu smart contract addresses and security audits # Swap | Role | Address | | ------------- | -------------------------------------------------------------------- | | **Exchange** | `0x04270219d365d6b017231b52e92b3fb5d7c8378b05e9abc97724537a80e93b0f` | | **Forwarder** | `0x0127021a1b5a52d3174c2ab077c2b043c80369250d29428cee956d76ee51584f` | # DCA | Role | Address | | ---------------- | -------------------------------------------------------------------- | | **Orchestrator** | `0x0492139c56af6faf77119b6bca3b6d40f559af6b7b23778f068dd9ca08e407c5` | # Staking ## Validator Addresses | Role | Address | | --------------- | -------------------------------------------------------------------- | | **Staker** | `0x036963c7b56f08105FfDD7f12560924bdc0cB29Ce210417eCbC8bF3C7E4b9090` | | **Reward** | `0x36963c7b56f08105ffdd7f12560924bdc0cb29ce210417ecbc8bf3c7e4b9090` | | **Operational** | `0x54f4784af6820c8feef75e87ede8c5dd53a65f33bcbe6714b5684448650a7db` | ## Pools | Token | Pool Address | | ----------- | ------------------------------------------------------------------- | | **STRK** | `0x362dc7da60bfddc8e3146028dfd94941c6e22403c98b5947104e637543b475d` | | **WBTC** | `0x2ea6a4ffce4c5e779451e043a9a24c9c0b0f784d9cc0f393bc1c801e3f8f2e3` | | **tBTC** | `0x750b4ecd1eef45cc74db3538277a869ced288f813e2faa00e0a5ae46243bbaa` | | **SolvBTC** | `0x262f5a1240bf2d61ca36c4eb3a57ff4ae0a183046d3dcab35d0880b7d1776dd` | | **LBTC** | `0x7ce7161e46e796e6034e3ead311d431567654116f3cffacefe37a2e17464a8f` |**Primary Blue** \#3761F6**Secondary Yellow** \#FFE164**Dark Blue** \#09104F**Dark Night** \#080915**Note:** Sepolia contract addresses may differ from mainnet. Always verify on [Voyager Sepolia](https://sepolia.voyager.online). ## Security Audits avnu smart contracts have undergone **3 independent security audits**:## Source Code **Date:** January 2024 **Scope:** Exchange contract **Findings:** 0 critical, 0 high **Date:** March 2024 **Scope:** Forwarder & Paymaster **Findings:** 0 critical, 0 high **Date:** May 2024 **Scope:** Orchestrator & DCA **Findings:** 0 critical, 1 medium (resolved) ## Verification All contracts are verified on Starknet block explorers: Core smart contracts (Exchange, Forwarder, Orchestrator) TypeScript SDK for integration ## Security & Best Practices Security is our top priority. We follow industry best practices and cooperate with security researchers to ensure the safety of our protocol. If you identify a potential vulnerability, please reach out to us immediately. We actively encourage responsible disclosure and welcome collaboration with the security community. Verified source code Contract details Contact [security@avnu.fi](mailto:security@avnu.fi) for responsible disclosure # Privacy Policy Source: https://docs.avnu.fi/resources/privacy-policy avnu Privacy Policy **Last modified: December 8, 2025** This Privacy Policy (the "Policy") explains how 419 Dev Labs (together with its affiliates, "avnu", "Alpha Road", "Company", "we", "our", or "us") collects, uses, stores, shares and protects information when you access or use: * [https://avnu.fi](https://avnu.fi), [https://app.avnu.fi](https://app.avnu.fi) and all related subdomains, * our trading interfaces, router, paymaster, intents engine and staking dashboards, * our APIs, SDKs, analytics pages or other web applications, * and any other properties, features, tools or services made available by avnu (collectively, the "Services"). By accessing or using the Services, you acknowledge that you have read and understood this Policy. This Policy forms part of our [Terms & Conditions](/resources/terms-of-service). *** ## 1. High-Level Summary avnu is a **non-custodial** interface and infrastructure provider.**We do not run account systems and do not identify users directly.** We use third-party analytics tools (e.g., Google Analytics, Hotjar, Vercel Analytics, Sentry) to understand platform usage and improve performance and security. * First/last name * Postal address * Date of birth * Email address * Private keys / seed phrases * Public on-chain data (wallet address, transactions) * Quote-level and swap-level logs * Limited off-chain analytics data * Technical and performance diagnostics **We never sell user data.** We minimize collection wherever possible. We continuously work to integrate privacy-preserving tooling (proxies, anonymization, local-first analytics, opt-outs). *** ## 2. Information We Collect We categorise the data we collect into three groups: ### 2.1 Public On-Chain Data (Non-Personal Data) When you interact with the Services, we may automatically read or process: * wallet addresses, * transactions you sign, * token balances, * routes executed via avnu, * events and logs emitted by smart contracts, * on-chain states required to compute quotes.This information is **public by design**. We do not control or modify blockchain transparency. ### 2.2 Technical & Device Information (Pseudonymous Off-Chain Data) We collect limited, pseudonymous technical metadata such as: * browser type and version * device type (mobile, tablet, desktop) * language preferences * pages visited, clicks, UI interactions * timestamps & session duration * network performance metrics * referrers and URL paths * aggregated usage statistics **We do not collect** personally identifying information such as name, email, or phone number. **We do not attempt** to link technical metadata to an individual identity. ### 2.3 Operational, Routing & Security Data To provide high-performance routing and maintain platform integrity, we log: * quote requests and parameters, * swap attempts, success and failure metrics, * slippage settings, route selections, transaction hashes, * suspicious or abusive patterns (e.g., spam queries, scraping, automated flooding), * API key usage patterns (if integrating via Developer Tools), * errors, exceptions and performance bottlenecks. We use this to: * improve routing quality, * protect the system from abusive or malicious behaviour, * detect anomalies, * maintain network reliability, * enforce rate limits and prevent platform degradation. *** ## 3. How We Use Data We use the data we collect for the following purposes: ### 3.1 Providing and improving the Services This includes: * computing quotes, routes, gas estimations, and simulations, * operating the router, paymaster, staking dashboard, and on-chain interactions, * monitoring app stability and infrastructure performance, * building analytics that help us improve swap routing and execution, * upgrading our systems and features based on usage patterns. ### 3.2 Customer support We may use technical logs and public blockchain data to: * troubleshoot user-reported execution issues, * diagnose errors or routing anomalies, * provide explanations or insights into expected vs. actual execution.Because we are non-custodial, **we cannot modify, reverse, or cancel any user transaction**. ### 3.3 Safety and security We may use data to: * detect and prevent abusive or fraudulent behaviour, * investigate bugs, exploits or suspicious patterns, * block harmful traffic or compromised wallets, * maintain platform reliability. This includes logging repeated failed transactions, unusual quote patterns, or automated scraping that degrades performance. ### 3.4 Legal obligations We may process or share information where: * required by law, * requested by regulators, law enforcement or competent authorities, * necessary to comply with sanctions, AML/CTF obligations (where applicable), * necessary to enforce our Terms & Conditions. ### 3.5 Aggregated & anonymized analytics We may combine or anonymize datasets to: * analyse product usage, * identify trends, * measure system performance, * guide product development decisions. Aggregated data contains no personal identifiers and cannot reasonably be traced back to an individual. *** ## 4. How We Share Data We share only the minimum necessary information with the third-party tools we use: ### 4.1 Service Providers **Sentry** Used for: * application monitoring, * error tracking, * debugging performance issues. **Google Analytics, Vercel Analytics, Hotjar** Used for: * understanding how users interact with the app, * improving UI/UX, * identifying performance bottlenecks, * conducting anonymized behavioural analysis. These tools do not receive blockchain private keys, names, emails, or other direct identifiers from us. **Vercel** Used for: * hosting, * serverless execution, * CDN delivery of the front-end interface. Vercel may log request metadata (IP address, request headers). We do not attempt to link that metadata to personal identities. ### 4.2 Legal disclosures We may share information if: * required by law, * necessary to comply with sanctions or AML rules, * responding to subpoenas, regulatory inquiries, or lawful investigations, * needed to protect our rights, users, or the integrity of the Services. ### 4.3 No sale of data **We never sell or rent user data.** *** ## 5. Legal Bases for Processing (GDPR) Where GDPR applies, we process data based on one or more of the following legal bases: | Legal Basis | Description | | ------------------------ | ------------------------------------------------------------------------------------------------ | | **Consent** | When you use our Services or accept cookies | | **Contract performance** | To operate the router, paymaster, staking dashboard, or API | | **Legal obligations** | Complying with applicable laws or regulatory inquiries | | **Legitimate interest** | Improving the Services, ensuring security, preventing abuse, and generating anonymized analytics | *** ## 6. Your Rights (GDPR & Equivalent Frameworks) Where applicable, you have the right to: | Right | Description | | ----------------------- | --------------------------------------------------------------- | | **Access** | Request a copy of personal data we may hold | | **Rectify** | Request corrections to inaccurate information | | **Erase** | Request deletion of personal data (subject to legal allowances) | | **Restrict processing** | Request limits on certain forms of processing | | **Object** | Object to processing based on legitimate interest | | **Data portability** | Receive data in a structured, machine-readable format | | **Withdraw consent** | At any time, where processing is based on consent |**Blockchains cannot be edited** We cannot modify: * your wallet address, * transaction history, * token balances, * on-chain state. Blockchain immutability is outside our control. *** ## 7. Data Retention We retain data only as long as needed to: * operate the Services, * comply with legal obligations, * detect and prevent abuse, * resolve disputes, * improve performance and routing quality. We may retain aggregated or anonymized data indefinitely. *** ## 8. Data Security We implement reasonable technical and organizational measures to protect data, including: * encrypted communications (HTTPS), * strict access controls, * minimal data collection by design, * ongoing audits of analytics providers, * infrastructure security hardening.However, no system can guarantee perfect security. We do not control the security of blockchains or user wallets. *** ## 9. International Data Transfers We may process or store data on servers operated by third-party providers located in various jurisdictions. Where required, we rely on: * Standard Contractual Clauses (SCCs), * adequacy decisions, * or other lawful mechanisms. *** ## 10. Changes to This Policy We may update this Policy from time to time. Material changes will be reflected via an updated "Last modified" date. **Your continued use of the Services indicates that you have reviewed and accepted the updated Policy.** *** ## 11. Contact If you have questions, complaints, or requests under this Policy, contact us:[privacy@avnu.fi](mailto:privacy@avnu.fi) We may request additional information to verify your identity before processing your request. # Support Source: https://docs.avnu.fi/resources/support Get help building with avnu ## Developer Support avnu provides comprehensive developer support to help you integrate successfully.## Community Join our active developer community: * **Telegram**: Real-time help from avnu engineers * **GitHub**: Report issues and request features * **Twitter**: Latest updates and announcements ## API Status Check [health.avnu.fi](https://health.avnu.fi) for real-time API health monitoring. # Terms of Service Source: https://docs.avnu.fi/resources/terms-of-service avnu Terms & Conditions **Last modified: January 12, 2026** This Agreement (the "Terms") is between you and 419 Dev Labs (together with its affiliates, "Company", "419 Dev Labs", "avnu", "Alpha Road", "we", "us", or "our") and governs your access to and use of: * the website avnu.fi and all related subdomains, * our web and mobile applications, widgets and embeddable modules, * our APIs, SDKs and developer tools, * any avnu interfaces for trading, routing, intents, gasless transactions, or staking, * and any other products, features, content or services we make available from time to time (collectively, the "Services" and any website/application, the "Site"). By clicking or tapping any button or box marked "accept", "agree", "sign", "sign message", "OK" (or similar) or by accessing or using the Services in any way, you: * acknowledge that you have read and understood these Terms; * agree to be bound by these Terms and our [Privacy Policy](/resources/privacy-policy); and * represent and warrant that you have the legal capacity and authority to enter into these Terms for yourself and, if applicable, on behalf of any organization you represent. **If you do not agree to these Terms, do not access or use the Services.** *** ## 1. Eligibility & Restrictions ### 1.1 Age and capacity You may use the Services only if: * you are at least 18 years old (or the age of majority in your jurisdiction, if higher); and * you have full power, authority and capacity to enter into these Terms. If you use the Services on behalf of a company or other legal entity (an "Organization"): * "you" and "your" refer to both you individually and that Organization; and * you represent and warrant that you have authority to bind that Organization to these Terms. **For users located in the United Kingdom:** Your use of Bridge Services does not constitute an endorsement of cryptocurrency trading by avnu or any third party. Bridge Services should not be regarded as an investment recommendation, financial advice, or inducement to trade cryptoassets. You acknowledge the speculative nature of cryptoassets and that you may lose some or all of your funds. ### 1.2 Sanctioned and restricted jurisdictions By using the Services, you represent, warrant and covenant that you are not: * a citizen, resident, or located in, incorporated in, or otherwise organized under the laws of: * the United States of America (each an "American"); or * Cuba, Iran, Myanmar (Burma), North Korea, China, Syria, the regions of Crimea, Donetsk or Luhansk, or * any country, region or territory that is the subject of comprehensive country-wide or region-wide economic sanctions by the United States, Canada, the United Kingdom, Switzerland or the European Union (collectively, "Sanctioned Territories"); * listed on, or owned or controlled by any person listed on, any sanctions- or watch-list maintained by the United Nations, the U.S. government (including OFAC), the European Union or its Member States, the United Kingdom, Switzerland or any other relevant sanctions authority; * using the Services for the benefit of any such person or entity; or * under the age of eighteen (18). You must not use any technology (including VPNs, proxies, Tor, or similar) or other means to circumvent these restrictions. We may restrict, block or terminate access to the Services at our sole discretion where we believe such restrictions are necessary to comply with applicable laws or sanctions programs. ### 1.3 Your legal compliance responsibility You are solely responsible for ensuring that your access to and use of the Services complies with all laws, rules and regulations applicable to you, including: * anti-money laundering (AML), * counter-terrorist financing (CTF), * anti-corruption and anti-bribery, * tax, securities and derivatives laws, * sanctions and export control laws, * and any licensing, registration or reporting obligations. We do not guarantee that the Services are legal or appropriate for use in your jurisdiction. We have no obligation to inform you of any such legal restrictions or liabilities. *** ## 2. Description of Services ### 2.1 Trading & routing interfaces The Services provide non-custodial interfaces and infrastructure that may include, among other things: * an on-chain swap / DEX aggregator that sources liquidity and routes orders across various protocols, smart contracts and liquidity pools; * order routing, intent, RFQ or pricing engines; * gas management or paymaster features (e.g. gasless transactions where we pay network fees under certain conditions); * dashboards, analytics or other informational tools; and * other tools that allow you to construct and submit transactions to supported networks. **We do not provide brokerage, custody, portfolio management, investment advice, or any regulated financial service. We do not at any time take custody of your digital assets.** ### 2.2 Staking & validator services We may operate or expose staking, delegation or validator services (together, "Staking Services"), such as allowing you to delegate tokens to a validator we operate or support. * Staking is non-custodial: you always hold your assets in your own wallet or protocol account. * We do not guarantee any level of rewards, uptime, slashing protection or network behavior. * Rewards (if any) are distributed according to the underlying network's rules and are outside our control. * Details of staking mechanics, commission and other parameters may be described in documentation, dashboards or interfaces and are incorporated by reference into these Terms. ### 2.3 Paymaster Services #### 2.3.1 Nature of Paymaster Services avnu may provide optional gas sponsorship services ("Paymaster Services") that allow certain transactions submitted through supported wallets, frontends, or integrations to be executed with gas fees partially or fully sponsored by avnu or by third-party gas sponsors. The Paymaster Services are: * non-custodial, * optional, * provided solely at avnu's discretion, * not guaranteed, * and may be modified, restricted, or discontinued at any time. The Paymaster Services do not constitute brokerage, custody, payment processing, credit, financial guarantees, or any regulated financial service. All transactions remain fully constructed and cryptographically signed by your own wallet. #### 2.3.2 No Guarantee of Sponsorship or Execution You understand and agree that avnu does not guarantee: * that any transaction will be sponsored, * that any gas fee will be paid on your behalf, * that sponsorship will be available for any particular Wallet, route, asset, integration, or user, * that transaction execution will succeed if sponsorship is attempted, * or that gas sponsorship will reduce costs, improve execution, or provide consistent performance. Paymaster Services are subject to dynamic internal rules, availability constraints, and operational limits. #### 2.3.3 Conditions Under Which Sponsorship May Fail A transaction may fail to receive gas sponsorship or may revert due to factors including, but not limited to: * insufficient paymaster balance, * internal rate limits, spam detection, or usage thresholds, * suspicious or abusive activity originating from your Wallet, integration, or API usage, * unsupported calldata, assets, contract interactions, or network, * upstream relayer, bundler, or RPC outages, * network congestion, reorgs, or gas-price volatility, * changes in sponsorship rules, eligibility logic, or allocation policies. If sponsorship fails, you may be required to resubmit and pay gas fees yourself. avnu is not responsible for any losses caused by failed or incomplete sponsorship. #### 2.3.4 No Custody or Responsibility for User Assets Providing gas sponsorship does not imply that avnu: * holds, manages, or controls user assets, * initiates, alters, or approves transactions, * monitors or modifies user signing behavior, * guarantees execution or price outcomes. Transactions are always initiated and signed by your own self-custodial Wallet. avnu cannot reverse, modify, or cancel any transaction. #### 2.3.5 Liability Disclaimer for Paymaster Usage To the maximum extent permitted by law, avnu shall not be liable for any losses, damages, delays, slippage, failed trades, reverted transactions, MEV impact, or unexpected execution results arising from: * sponsored, partially sponsored, or non-sponsored transactions, * incorrect or fluctuating gas settings, * execution differences caused by gas sponsorship logic, * failures of network infrastructure or third-party bundlers/relayers, * changes in sponsorship rules or availability, * abusive, automated, or excessive usage patterns, * or any other technical or protocol-related risks. You remain solely responsible for verifying and understanding all transaction parameters before signing. #### 2.3.6 Abuse Prevention and Enforcement avnu reserves the right to: * limit, restrict, or block Paymaster access for specific Wallets, IPs, API keys, integrations, or transactions, * impose dynamic rate limits, * decline sponsorship for transactions deemed high-risk, abusive, or harmful to system performance, * suspend Paymaster Services globally or selectively at any time. For the purposes of preventing abuse, improving performance, and ensuring network integrity, avnu may log, analyze, and monitor Paymaster-related interactions in accordance with our [Privacy Policy](/resources/privacy-policy). #### 2.3.7 Changes to Paymaster Rules avnu may modify, update, or discontinue Paymaster rules, sponsorship logic, coverage amounts, supported assets, or eligibility requirements at any time without notice. Your continued use of the Services constitutes acceptance of all such modifications. ### 2.4 APIs, SDKs & integrations We may provide APIs, SDKs, libraries, webhooks or other developer tools (collectively, "Developer Tools") and may integrate with third-party wallets, dApps, frontends or services. If you integrate or build on top of our Developer Tools: * you are fully responsible for your own application, * you must ensure your use complies with these Terms and all applicable laws, and * you must not misrepresent your integration as being endorsed, audited or operated by avnu unless we explicitly agree in writing. ### 2.5 Incentive / rewards programs We may from time to time offer incentives, rewards, loyalty programs, airdrops, points or similar (collectively, "Incentive Programs"). * Participation is optional and at your own risk. * We may modify, suspend or terminate any Incentive Program at any time, with or without notice. * No Incentive Program guarantees any future token, value, yield or listing. ### 2.6 Bridge Services The Bridge feature available through our Services is powered by Near Intents (also known as "1Click Swap" or "1CS"), infrastructure operated by Defuse Protocol. When you use Bridge Services, you are also subject to the [Near Intents Terms of Service](https://docs.near-intents.org/near-intents/integration/distribution-channels/1click-terms-of-service). By using Bridge Services, you acknowledge and agree that: * **(a)** Bridge Services involve cross-chain asset transfers using experimental infrastructure that may be suspended, modified, or discontinued at any time without notice; * **(b)** Cross-chain transactions are irreversible once initiated and may involve delays due to blockchain confirmation times, network congestion, or solver availability; * **(c)** You are solely responsible for verifying deposit addresses, supported assets, minimum amounts, and all transaction parameters before initiating any bridge transaction; * **(d)** Neither avnu nor Defuse Protocol custody your assets at any time during the bridging process; * **(e)** Bridge Services are provided "AS IS" without warranties of any kind, and aggregate liability for any claims arising from Bridge Services is limited to USD \$100; * **(f)** You will not use Bridge Services to circumvent sanctions, engage in money laundering, or facilitate any illegal activity. *** ## 3. Non-Custodial Nature & Wallets ### 3.1 Your wallet, your responsibility The Services interact with self-custodial wallets and smart contracts you control. You may connect a compatible wallet (a "Wallet") to use the Services. * We do not create or host wallets for you. * We never have access to your private keys, seed phrase, password or recovery information. * You remain solely responsible for securing your Wallet and backing up your keys. Telegram Developer Group Developer Support Email If you lose access to your Wallet or keys, we cannot recover your assets or reverse transactions. You irrevocably waive any claim against us related to loss of keys, Wallet mismanagement or unauthorized access to your Wallet. ### 3.2 Transaction construction and broadcast When you use the Services to submit a transaction: * the transaction is constructed and signed by your Wallet (or other client you control), * you are solely responsible for verifying all transaction details (assets, amounts, slippage, contract addresses, fees, etc.) before signing, and * once broadcast to the network, the transaction is irreversible under normal circumstances. We do not guarantee any transaction will be mined, confirmed, executed as expected, or remain in the same state due to reorgs, forks, MEV, network congestion, oracle issues or protocol bugs. *** ## 4. Fees, Commissions & Taxes ### 4.1 Swap service fees avnu charges a service fee on swaps and similar interactions executed via the Services (the "Service Fee"). * As of the Last Modified date, the Service Fee is typically in the range of **0.02% – 0.15%** of the notional amount of the trade, depending on route complexity and other factors. * The actual Service Fee for a given transaction will generally be displayed in the interface before you confirm the transaction, either explicitly or as part of the price/route. * Service Fees may be taken in the input asset, output asset, or another supported token, including by adjusting the effective exchange rate or routing path. * We may change, add or remove any Service Fees at any time, in our sole discretion. Any such changes apply prospectively to transactions initiated after the change. * **Service Fees are non-refundable** under any circumstances, including failed or reverted transactions, network issues, protocol exploits, or user mistakes. ### 4.2 Staking commission For Staking Services, avnu charges a commission on staking rewards (the "Staking Commission"). * As of the Last Modified date, the Staking Commission is **10% (ten percent)** of the gross staking rewards attributable to your delegation or stake, as measured by the underlying protocol. * The Staking Commission may be captured directly at the protocol level or via our validator configuration, reward distribution logic or equivalent mechanics. * The Staking Commission is deducted before rewards, if any, are credited to you. * We may change the Staking Commission at any time, in our sole discretion, subject to any protocol-level constraints. ### 4.3 Third-party fees In addition to avnu fees, you may also incur: * network gas fees charged by the blockchain, * protocol-level fees (e.g., DEX or pool fees), * bridge fees or wrapping/unwrapping costs, * fees charged by your Wallet provider or other third parties. We do not control these fees and are not responsible for any changes or inaccuracies in them. ### 4.4 Taxes You are solely responsible for: * determining whether, and to what extent, taxes apply to any transaction, reward, airdrop, gain, loss, or event in connection with your use of the Services; and * reporting and remitting such taxes to the appropriate tax authorities. We do not provide tax advice and do not calculate or withhold any taxes on your behalf. *** ## 5. Risks & No Guarantees ### 5.1 High-risk technology By using the Services, you acknowledge and agree that: * blockchain systems, smart contracts, zero-knowledge systems and cryptoassets are experimental, volatile and high-risk; * the value, liquidity and legal status of any digital asset may change rapidly and unpredictably; * you may lose some or all of your funds, including due to: * smart contract bugs or vulnerabilities, * protocol exploits or design flaws, * oracle failures or manipulation, * MEV, front-running or sandwich attacks, * network congestion, chain reorganizations or forks, * slashing, penalties or validator misbehavior, * UI bugs, misquotes, integration errors or data delays, * mistakes made by you, including choosing 100% slippage or other extreme settings.You should not use the Services with funds you cannot afford to lose. ### 5.2 Quotes, slippage and execution Any price, route, simulation, "best price", "expected output" or similar information shown in the Services is **informational only** and may differ from actual execution. * You choose your own slippage tolerance and transaction parameters. * If you set a very high or 100% slippage, your entire input may be swapped into unexpected assets or at extremely unfavorable rates. * We are not responsible for bad prices, unexpected execution due to your slippage settings, changes in on-chain state between quote and execution, or any loss resulting from your transaction parameters. **You are solely responsible for reviewing all parameters and understanding the consequences before signing.** ### 5.3 No professional advice; no fiduciary duties All information provided via the Services is for **informational purposes only** and does not constitute: * investment, trading, legal, tax, accounting or other professional advice; * any solicitation, offer, recommendation or endorsement to buy, sell or hold any asset. You should consult your own professional advisers before making any decision. To the maximum extent permitted by law, you acknowledge and agree that: * we owe no fiduciary duties to you or any third party; and * any duties that may exist at law or in equity are hereby disclaimed, waived and eliminated to the fullest extent permitted by law. *** ## 6. Prohibited Uses You may only use the Services for lawful purposes and in accordance with these Terms. You agree not to: * **Violate any applicable law**, regulation, sanctions program or third-party rights. * **Use the Services on behalf of or for the benefit of** any sanctioned or otherwise prohibited person. * **Exploit or harm** minors or vulnerable persons. * **Transfer or use digital assets** that do not legally belong to you or that you have no right to use. * **Engage in:** * market manipulation (including spoofing, wash trading or layering), * abusive trading practices, * fraud, rugpulls, Ponzi schemes or other unlawful activities. * **Interfere with, disrupt or degrade** the operation of the Services, including: * attempting to gain unauthorized access to any system or account, * deploying malware or conducting denial-of-service attacks, * scraping or harvesting data in violation of applicable law. * **Reverse engineer, decompile, disassemble**, circumvent technical protections, or otherwise attempt to derive the source code of any part of the Services, except to the extent permitted by applicable mandatory law. * **Use automated tools** (bots, scripts, crawlers) in a way that burdens or harms the Services or other users. * **Impersonate** any person or entity or misrepresent your affiliation with any person or entity. * **Use VPNs, proxies or other tools** for the purpose of circumventing jurisdictional, sanctions or eligibility restrictions. We may investigate and take any action we deem appropriate (including suspending or terminating access, and cooperating with law enforcement) in connection with any suspected violation of this Section. *** ## 7. API & Developer Tool Terms If you use any avnu API, SDK or Developer Tools, you agree that: * Your use is subject to these Terms and any additional documentation, rate limits, usage rules or policies we publish. * We may suspend, limit or revoke access at any time if we believe your use: * violates these Terms, * degrades or harms the Services or other users, or * poses legal, security or reputational risk. * You must not: * resell our API or provide it as a competing service without our written consent; * use our API to misrepresent prices, routes or fees to end users; or * falsely imply that your product is developed, audited or controlled by avnu. * You are solely responsible for any application you build on top of our Developer Tools and for all actions taken using your API keys. *** ## 8. No Warranties The Services are provided on an **"AS IS"** and **"AS AVAILABLE"** basis without warranties of any kind. To the maximum extent permitted by law, we, our officers, directors, employees, contractors, agents and affiliates expressly disclaim all warranties, whether express, implied or statutory, including but not limited to: * warranties of merchantability, * fitness for a particular purpose, * non-infringement, * title, * quiet enjoyment, accuracy, or reliability, * and any warranties arising out of course of dealing or usage of trade. Without limiting the foregoing, we do not warrant that: * the Services will be secure, error-free, uninterrupted or available at any particular time or place; * any defects or errors will be corrected; * any content, data or information is accurate, complete, up-to-date or free from technical inaccuracies; * the Services or any related software are free of viruses, vulnerabilities or harmful components; or * any transaction will achieve any particular outcome or execution quality. **Your use of the Services is entirely at your own risk.** *** ## 9. Limitation of Liability To the maximum extent permitted by applicable law, in no event shall the Company, its officers, directors, employees, contractors, agents, representatives, or affiliates be liable to you or any third party for: * any indirect, incidental, special, punitive, exemplary or consequential damages, including loss of profits, loss of revenue, loss of data, loss of goodwill or business interruption; * any loss or damage arising out of or relating to: * user errors (e.g., wrong address, incorrect parameters, extreme slippage), * loss of private keys, passwords or access to your Wallet, * transaction failures, delays, reorgs or unexpected execution, * bugs or vulnerabilities in smart contracts, protocols, bridges, or underlying blockchains, * protocol exploits, hacks, theft, fraud, or attacks (including MEV, front-running or oracle manipulation), * interruption, suspension or termination of the Services, * third-party services, infrastructure or integrations, * any change in law, regulation or tax treatment of digital assets. **In all cases, our aggregate liability shall be limited to the greater of:** * the total amount of fees you paid directly to avnu for the relevant transaction(s) during the three (3) months preceding the event giving rise to the claim; or * **one hundred U.S. dollars (USD 100)** (or equivalent in another currency). Some jurisdictions do not allow the exclusion or limitation of certain damages, so the above limitations may not apply to you. In such cases, our liability shall be limited to the maximum extent permitted by applicable law. *** ## 10. Indemnification You agree to defend, indemnify and hold harmless the Company, its affiliates and their respective shareholders, members, directors, officers, employees, contractors and agents from and against any and all claims, demands, actions, proceedings, damages, losses, liabilities, fines, penalties, costs and expenses (including reasonable attorneys' fees) arising out of or relating to: * your access to or use of the Services; * your violation of these Terms or any applicable law, rule or regulation; * your violation of any third-party right, including any intellectual property, privacy or proprietary right; or * any other party's access to or use of the Services with your assistance or using any device, account or Wallet that you own or control. *** ## 11. Intellectual Property ### 11.1 Ownership All rights, title and interest in and to the Services, including all software, code, interfaces, designs, logos, trademarks, service marks, content, graphics, text, documentation and other materials (collectively, "avnu IP"), are owned by the Company or its licensors. Except for the limited license expressly granted below, nothing in these Terms confers any rights in or to avnu IP, whether by implication, estoppel or otherwise. ### 11.2 Limited license Subject to these Terms, we grant you a limited, personal, revocable, non-exclusive, non-transferable, non-sublicensable license to access and use the Site and Services solely for your own personal or internal business purposes. You may not: * copy, modify, adapt, distribute, sell, lease, sublicense or otherwise exploit avnu IP; * remove, obscure or alter any copyright, trademark or other proprietary notices; or * use any avnu trademarks, names or logos without our prior written consent. We may revoke this license at any time and for any reason. ### 11.3 Your content & feedback You retain ownership of any content, data or materials you submit through the Services ("User Content"). You grant us a worldwide, non-exclusive, royalty-free, sublicensable and transferable license to use, reproduce, modify, adapt, publish, translate, create derivative works of, distribute, perform and display such User Content as reasonably necessary to operate, improve and promote the Services and to comply with legal obligations. If you provide any suggestions, ideas, bug reports or other feedback about the Services ("Feedback"), you agree that we may use such Feedback without restriction and without any obligation or compensation to you. *** ## 12. Privacy We may process personal data in connection with your use of the Services. Our practices are described in our Privacy Policy, available at:Read our Privacy Policy By using the Services, you acknowledge that you have read and understood our Privacy Policy and that we may collect, use and share your information as described therein. *** ## 13. Third-Party Services & Links The Services may reference, integrate, or link to third-party: * websites, protocols, DEXes, bridges (including Near Intents/Defuse Protocol), oracles, wallets, on-ramps, off-ramps, analytics tools, or infrastructure; * smart contracts or applications not controlled by us; * content, promotions, offers, or advertising. We do not control and are not responsible for any third-party services or content. Your use of any third-party service is solely between you and that third party and may be subject to separate terms and policies. We are not responsible for any loss or damage arising from your use of, or reliance upon, any third-party service or content. *** ## 14. Changes to Services & Terms We may, at any time and in our sole discretion: * add, remove, modify, suspend or discontinue any part of the Services; * modify these Terms, including our fee structure or supported jurisdictions. When we make material changes to these Terms, we may update the "Last modified" date and, where required by law or where we deem appropriate, provide additional notice (e.g., via the Site or email). **Your continued use of the Services after any changes to the Terms constitutes your acceptance of the revised Terms.** If you do not agree to the updated Terms, you must stop using the Services. *** ## 15. Termination We may, in our sole discretion and without liability to you, with or without notice, for any reason or no reason: * suspend or terminate your access to all or part of the Services; * block or restrict your Wallet or IP from interacting with the Services; * take any other measures we deem necessary or appropriate. Sections of these Terms that by their nature should survive termination shall survive, including but not limited to: No Warranties, Limitation of Liability, Indemnification, Intellectual Property, Governing Law & Arbitration, and Miscellaneous. You may stop using the Services at any time. Because the Services are non-custodial, termination of your access does not affect your underlying assets on the blockchain. *** ## 16. Governing Law & Arbitration ### 16.1 Governing law These Terms, and any dispute or claim arising out of or in connection with them or their subject matter or formation (including non-contractual disputes or claims), shall be governed by and construed in accordance with the **laws of the British Virgin Islands**, unless otherwise required by applicable law. ### 16.2 Binding arbitration Any dispute, controversy or claim arising out of or relating to these Terms, the Services, or any transaction you perform using the Services (a "Dispute") shall be finally resolved by arbitration in accordance with the **BVI International Arbitration Centre Arbitration Rules** (the "Rules") in force at the time the arbitration is initiated. * The seat of arbitration shall be the British Virgin Islands. * The language of the arbitration shall be English. * The arbitral tribunal shall consist of one (1) arbitrator, appointed in accordance with the Rules. **You and the Company waive any right to have any Dispute resolved in a court of law (other than to enforce an arbitral award) and to a trial by jury, to the fullest extent permitted by law.** ### 16.3 No class actions To the fullest extent permitted by law, all Disputes must be brought in an individual capacity, and not as a plaintiff or class member in any purported class, collective or representative proceeding. *** ## 17. Compliance, KYC & AML We reserve the right, but not the obligation, to: * conduct KYC/AML checks or require you to provide certain information and documentation (e.g., passport, ID, proof of address, source of funds) if deemed necessary by us or required by law; * refuse, restrict or terminate your access to the Services if you fail to provide such information or if we reasonably suspect that your use of the Services is linked to money laundering, terrorism financing, fraud, sanctions evasion, or any other illegal activity; * share any information we deem necessary with competent authorities where required by law or when we believe in good faith that such disclosure is reasonably necessary. *** ## 18. Miscellaneous ### 18.1 Entire agreement These Terms (including any documents incorporated by reference, such as our Privacy Policy and any specific program terms) constitute the entire agreement between you and us regarding the Services and supersede all prior or contemporaneous agreements, understandings or communications, whether written or oral. ### 18.2 Assignment You may not assign, transfer or delegate any of your rights or obligations under these Terms without our prior written consent. We may freely assign or transfer our rights and obligations under these Terms without restriction. ### 18.3 Severability If any provision of these Terms is determined to be invalid, illegal or unenforceable, such provision shall be enforced to the maximum extent permitted, and the remaining provisions shall remain in full force and effect. ### 18.4 No waiver Our failure to enforce any right or provision of these Terms shall not be deemed a waiver of such right or provision. Any waiver must be in writing to be effective. ### 18.5 Language These Terms may be translated into other languages. In case of any discrepancy or conflict between the English version and a translated version, the English version shall prevail. ### 18.6 Contact If you have questions, claims, complaints or suggestions regarding these Terms or the Services, you may contact us at:[legal@avnu.fi](mailto:legal@avnu.fi) # Circle USDC Migration Source: https://docs.avnu.fi/updates/circle-usdc-migration Everything you need to know about the migration from USDC.e to native USDC on Starknet.![]()
# Circle USDC.e to USDC Migration Circle is launching native USDC on Starknet, replacing the bridged USDC.e as the standard stablecoin. This guide covers the migration process, timeline, and how avnu supports this transition. ## Quick Recap For the upcoming **USDC.e → native USDC migration**: * **Migration Support**: avnu will integrate both the migration contract and liquidity pools. Our routing engine will automatically route users to the option offering the best rate at execution. * **Token List Update**: On migration day, we will automatically update our token list. The current USDC address will be replaced by the new native one, and we'll create a fresh **USDC.e** entry for the bridged token. * **Seamless Integration**: All our integrators (wallets like Ready, Braavos, Xverse, Keplr, etc.) will receive these updates instantly. ## Timeline * **Official Launch**: December 3, 1 pm UTC (8 AM EDT). * Circle public announcement of CCTP + native USDC * **12 pm UTC**: We merge the token list update (USDC.e and USDC token). ## Addresses ### Mainnet | Contract | Address | | :--------------------- | :------------------------------------------------------------------- | | **New Native USDC** | `0x033068f6539f8e6e6b131e6b2b814e6c34a5224bc66947c47dab9dfee93b35fb` | | **Legacy USDC.e** | `0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8` | | **Migration Contract** | `0x07bffc7f6bda62b7bee9b7880579633a38f7ef910e0ad5e686b0b8712e216a19` | ### Sepolia Testnet | Contract | Address | | :--------------------- | :------------------------------------------------------------------ | | **New Native USDC** | `0x512feac6339ff7889822cb5aa2a86c848e9d392bb0e3e237c008674feed8343` | | **Legacy USDC.e** | `0x53b40a647cedfca6ca84f542a0fe36736031905a9639a7f19a3c1e66bfd5080` | | **Migration Contract** | `0x431cba89859cfd85283cf34b99ad53bf53d66c41844a7698d9179900b103813` | ## Resources * [Circle CCTP Documentation](https://developers.circle.com/cctp/starknet-contracts) * [StarkGate Migration Portal](http://starkgate.starknet.io/migrate-usdc) (Live on Dec 3)