@avnu/avnu-sdk
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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.

/@avnu/avnu-sdk/

    Package Sidebar

    Install

    npm i @avnu/avnu-sdk

    Weekly Downloads

    89

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.97 MB

    Total Files

    12

    Last publish

    Collaborators

    • florian-bellotti
    • mentornotapseudo