Skip to content

SoundWorkLabs/spl-token-minter-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDK

Typescript SDK for interacting with our Token minting smart contract

Installation from source

NOTE This is an UNPUBLISHED npm package. You have to build and install it locally from this repo

  1. Clone the sdk repo
git clone https://github.com/SoundWorkLabs/token-test-sdk
  1. Build the NPM project and pack it into a distributable format
npm run build:ts && npm pack
  1. Install/Add the package to your project using the relative paths
npm install <PATH TO CLONED AND BUILD SDK REPO>  # e.g. npm install ../token-test-sdk

Usage

Initialization

import { TokenTestSDK } from "token-test-sdk";

// provide your anchor provider and solana connection to
const SDK = await new TokenTestSDK(provider, connection);

Available Instructions

  1. Create Mint details
SDK.createToken(name, uri, symbol, supply, decimals);
  1. Revoke mint details
SDK.revoke(mint);
  1. Mint tokens
SDK.mint(amount, mint);
  1. transfer tokens
SDK.mint(mint, recipient, amount);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published