Commonjs script that executes basic compression/decompression/transfer instructions.
You need to have the CLI installed to run this example on Localnet. For installation instructions, see here
# Start a light test-validator using the CLI
light test-validatorTo run the token.ts example:
- By default, it interacts with Solana Devnet.
- Create a
.envfile in the root directory using.env.exampleas a template. - Set your
RPC_ENDPOINT,PAYER_KEYPAIR,MINT_ADDRESSin the.envfile.
npm installnpm run mint-splnpm run compress