Skip to content

Lightprotocol/example-nodejs-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-nodejs-client

Commonjs script that executes basic compression/decompression/transfer instructions.

Requirements

You need to have the CLI installed to run this example on Localnet. For installation instructions, see here

Start a light test-validator for localnet

# Start a light test-validator using the CLI
light test-validator

Running the Token Example

To run the token.ts example:

  1. By default, it interacts with Solana Devnet.
  2. Create a .env file in the root directory using .env.example as a template.
  3. Set your RPC_KEY in the .env file.

Running the full example

npm install
# npm run connection
# npm run token
# npm run lamports
# npm run extended
# npm run lookup-table
npm run example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published