=============== LIBRARY RULES =============== From library maintainers: - All amount fields (sellAmount, buyAmount, fees) are BigInt, not number or string. API transmits hex strings but SDK exposes BigInt. - Use getBaseUrl() for swap/dca/token/staking services. Use getImpulseBaseUrl() for market data (impulse) service. - Actions follow build/execute pattern: *ToCalls() returns Call[], execute*() handles normal flow & paymaster support. - Pagination uses Page type with content, totalElements, totalPages, hasNext. Not simple arrays. - Paymaster integration uses InvokePaymasterParams with provider (PaymasterInterface from starknet), params (ExecutionParameters), and active boolean flag. ### Install and Run Next.js App Source: https://github.com/avnu-labs/avnu-sdk/blob/develop/dapp-example/README.md Install project dependencies and start the development server. Open http://localhost:3000 to view the application. ```bash npm install npm run dev ``` -------------------------------- ### Install Avnu SDK Source: https://github.com/avnu-labs/avnu-sdk/blob/develop/README.md Install the Avnu SDK using npm or yarn. Ensure Node.js and Starknet.js are installed. ```bash // Using npm npm install @avnu/avnu-sdk // or yarn yarn add @avnu/avnu-sdk ``` -------------------------------- ### Get Token Quotes and Execute Swap Source: https://github.com/avnu-labs/avnu-sdk/blob/develop/README.md Use getQuotes to fetch swap quotes and executeSwap to perform the token exchange. Requires sell token, buy token, sell amount, and taker address. Ensure slippage is set. ```typescript import { getQuotes, executeSwap } from '@avnu/avnu-sdk'; const quotes = await getQuotes({ sellTokenAddress: '0x...', buyTokenAddress: '0x...', sellAmount: 1000000n, takerAddress: account.address, }); await executeSwap({ quote: quotes[0], slippage: 0.01, // 1% account, }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.