@km7/zz-solana
TypeScript icon, indicating that this package has built-in type declarations

1.4.7 • Public • Published

ZZ Solana

The javascript SDK for Solana with the most common use cases!

Install

npm install @km7/zz-solana

# or 

yarn add @km7/zz-solana

Test

All the test cases is dependent on sepecial solana network.

  1. localhost: It's fast, but you must hava the solana localhost environment.
  2. network: It's a bit slow, but more easy without localhost environment.

Network(localhost)

recommend to use devnet to perform test.

  1. Install solana cli tools: Please refer to offical document.

  2. Set the localhost network

      solana config set --url localhost
  3. Run the solana test validator

      solana-test-validator

Network(devnet)

The nft section must be test on devnet, because the localhost network has no metadata relevent programs.

  npm run test

Usage

All the usages can be find in test folder.

SOL

  1. query amount
  2. transfer

SPL

  1. query amount
  2. mint
  3. transfer
  4. burn

NFT(a special SPL)

NFT is a special SPL Token in Solana!

  1. mint
  2. transfer
  3. burn

Readme

Keywords

Package Sidebar

Install

npm i @km7/zz-solana

Weekly Downloads

1

Version

1.4.7

License

MIT

Unpacked Size

148 kB

Total Files

39

Last publish

Collaborators

  • _7km