Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avnu-labs/avnu-sdk

AVNU SDK - Your Starknet Liquidity Endpoint
https://github.com/avnu-labs/avnu-sdk

avnu sdk starknet

Last synced: 24 days ago
JSON representation

AVNU SDK - Your Starknet Liquidity Endpoint

Awesome Lists containing this project

README

        

# AVNU-SDK

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

## Installation

```shell
npm install @avnu/avnu-sdk

# or

yarn add @avnu/avnu-sdk
```

## Usage

```ts
const params = {
sellTokenAddress: ethAddress,
buyTokenAddress: wBtcAddress,
sellAmount: formatUnits('200000000000000000', 18),
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.