Skip to content

AVNU SDK - Your Starknet Liquidity Endpoint

License

Notifications You must be signed in to change notification settings

yoioooo/avnu-sdk

 
 

Repository files navigation

AVNU-SDK

AVNU-sdk is a typeScript SDK for building exchange functionality on Layers 2 with the AVNU API.

Installation

npm install @avnu/avnu-sdk

# or

yarn add @avnu/avnu-sdk

Usage

const params = {
  sellTokenAddress: ethAddress,
  buyTokenAddress: wBtcAddress,
  sellAmount: '200000000000000000',
  takerAddress: account.address,
}
const quotes = await fetchQuotes(params);
await executeSwap(account, quotes[0]);

Example

This repository includes a basic example in the [/examples](/examples) folder.

About

AVNU SDK - Your Starknet Liquidity Endpoint

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.5%
  • HTML 4.0%
  • JavaScript 0.5%