Socket
Socket
Sign inDemoInstall

@jup-ag/deltafi-sdk

Package Overview
Dependencies
Maintainers
4
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jup-ag/deltafi-sdk

This repository contains deltafi-dex-v2 anchor client and example to do swap on deltafi-dex-v2.


Version published
Maintainers
4
Created
Source

deltafi-sdk

This repository contains deltafi-dex-v2 anchor client and example to do swap on deltafi-dex-v2.

Instruction to run the example

Install packages first:

yarn install

Then run the example with test keypair on testnet

yarn ts-node src/example/example.ts swap -k ./keypairs/testnet-keypair.json -n testnet

You can also use your own keypair on mainnet-beta to swap 1 token between USDC and USDT

yarn ts-node src/example/example.ts swap -k <your_keypair> -n mainnet-beta

Deposit 1 token to USDC-USDT pool.

yarn ts-node src/example/example.ts deposit -k <your_keypair> -n mainnet-beta

Withdraw 1 token from USDC-USDT pool.

yarn ts-node src/example/example.ts withdraw -k <your_keypair> -n mainnet-beta

The config in this repo may not be up to date. You can read the latest config with our public api.

yarn ts-node src/example/example.ts get-config

The response will contain all available swap pools.

Keywords

FAQs

Package last updated on 01 Sep 2022

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