New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

navi-aggregator-sdk

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

navi-aggregator-sdk

NAVI Aggregator for Sui Defi Ecosystem

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

navi-aggregator-sdk

NAVI Aggregator for Sui Defi Ecosystem

This project provides a TypeScript SDK for interacting with the Sui Defi projects, allowing developers to integrate token swap functionalities, manage transactions, and interact with the blockchain using NAVI's aggregator.

Supported DEX

  • CETUS
  • Turbos
  • DeepBook v2/v3

Installation

npm i navi-aggregator-sdk

Environment Setup

Ensure you have a .env file set up with the following variables:

MNEMONIC=<your_wallet_mnemonic>
RPC=<your_sui_rpc_url>
apiBaseURL = <api_url>

Usage

Explanation of Parameters:

  • client: Instance of SuiClient that connects to the SUI blockchain.
  • txb: Transaction object used to build and execute the swap.
  • userAddress: The address of the user initiating the transaction.
  • tokenA: Address of the token being swapped from.
  • tokenB: Address of the token being swapped to.
  • amountIn: The amount of tokenA to swap.
  • minAmountOut: Acceptable Minmium to Receive.
import {getRoutePTB} from 'navi-aggregator-sdk/dist/src';

export async function getRoutePTB(client: SuiClient, txb: Transaction, userAddress: string, tokenA: string, tokenB: string, amountIn: number, minAmountOut: number): Transaction

FAQs

Package last updated on 12 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc