New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

yamaswap-sdk

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yamaswap-sdk

ETF SDK for Solana and Evm

latest
Source
npmnpm
Version
0.2.16
Version published
Maintainers
2
Created
Source

Yamaswap SDK

A Solana SDK for creating and managing ETF tokens ( from Yamaswap ).

Prerequisites

  • Node.js 23+
  • Solana wallet
  • Solana RPC endpoint (localnet | devnet | mainnet)
  • "@solana/web3.js": "^1.95.0" (recommended)

Installation

npm install yamaswap-sdk

Usage

import { DexClient } from 'yamaswap-sdk';

const client = new DexClient(connection, wallet);

Create ETF

    const createETFParams = {
        name: 'Test ETF',
        symbol: 'TEST5',
        description: 'Test Description',
        url: 'https://test.com',
        constitunent: [{
            tokenAddress: ,
            weight: 
        },...]
    }

    const createETFresult = await client.createETF(createETFParams, wallet);
    console.log('Create ETF result:', createETFresult);

Buy and Mint ETF Token

    const buyMintETFTokenresult = await client.purchaseETF(wallet, {
        etfAddress: new PublicKey('7NhFX8qPxqHarmHrGbk3LP8G8tgGoo8f4ErFc8RBSRHa'),
        lamports: 100000000000
    });
    console.log('Buy Mint ETF Token result:', buyMintETFTokenresult);

Burn ETF

    const burnETFresult = await client.burnETF(wallet, {
        etfAddress: new PublicKey('7NhFX8qPxqHarmHrGbk3LP8G8tgGoo8f4ErFc8RBSRHa'),
        lamports: 90000000000
    });
    console.log('Burn ETF result:', burnETFresult);

See the examples folder for detailed use cases

Keywords

solana

FAQs

Package last updated on 14 May 2025

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