Skip to content

dzamlic/token-program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana

About the program

Program create and mint token, transfer token from one address to another https://spl.solana.com/token

After first mint is done, dont forget to replace dummy with mint id

Program written in rust counts trensfer calls

Quick Start

The following dependencies are required to build and run this example, depending on your OS, they may already be installed:

Start local Solana cluster

This example connects to a local Solana cluster by default.

Start a local Solana cluster:

solana-test-validator

Note: You may need to do some system tuning (and restart your computer) to get the validator to run

Listen to transaction logs:

solana logs

Install npm dependencies

npm install

Deploy the on-chain program

solana program deploy --program-id dist/program/to-wallet-keypair.json dist/program/token_program.so

Run the JavaScript client

npm run start

Build rust program

npm run build:program

Run test for the rust program

cargo test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published