1.4.7 • Published 1 year ago

@zclubweb3/zclub-solana v1.4.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Zclub Solana

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

Install

npm install @zclubweb3/zclub-solana

# or 

yarn add @zclubweb3/zclub-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
1.4.7

1 year ago

1.4.6

1 year ago

1.4.5

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago