1.0.1 • Published 11 months ago

avnu-sdk-v5 v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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.

1.0.1

11 months ago

1.0.0

11 months ago