Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/avnu-labs/avnu-sdk
- Owner: avnu-labs
- License: mit
- Created: 2022-09-06T20:04:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-15T13:28:27.000Z (5 months ago)
- Last Synced: 2024-11-18T03:03:52.228Z (24 days ago)
- Topics: avnu, sdk, starknet
- Language: TypeScript
- Homepage: https://doc.avnu.fi
- Size: 1.11 MB
- Stars: 12
- Watchers: 2
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-starknet - Avnu SDK
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.