https://github.com/7kms/zz-solana
https://github.com/7kms/zz-solana
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/7kms/zz-solana
- Owner: 7kms
- License: gpl-3.0
- Created: 2022-07-05T08:13:42.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-07T11:57:17.000Z (almost 3 years ago)
- Last Synced: 2025-09-17T22:51:58.629Z (9 months ago)
- Language: TypeScript
- Size: 316 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ZZ Solana
The javascript SDK for Solana with the most common use cases!
## Install
```sh
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](https://docs.solana.com/cli/install-solana-cli-tools).
2. Set the localhost network
```sh
solana config set --url localhost
```
3. Run the solana test validator
```sh
solana-test-validator
```
### Network(devnet)
The nft section must be test on devnet, because the localhost network has no metadata relevent programs.
```sh
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