Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 820 Bytes

File metadata and controls

36 lines (24 loc) · 820 Bytes

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_ENDPOINT, PAYER_KEYPAIR, MINT_ADDRESS in the .env file.

Running examples

npm install
npm run mint-spl
npm run compress