@km7/zz-solana
v1.4.7
Published
The javascript SDK for Solana with the most common use cases!
Downloads
4
Readme
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.
localhost
: It's fast, but you must hava the solana localhost environment.network
: It's a bit slow, but more easy without localhost environment.
Network(localhost)
recommend to use devnet to perform test.
Install solana cli tools: Please refer to offical document.
Set the localhost network
solana config set --url localhost
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
- query amount
- transfer
SPL
- query amount
- mint
- transfer
- burn
NFT(a special SPL)
NFT is a special SPL Token in Solana!
- mint
- transfer
- burn