Installation
Get started with the GLAM SDK by installing it via your preferred package manager.Requirements
The GLAM SDK requires Node.js version 20.20.0 or higher.
- Node.js >= 20.20.0
- npm, yarn, or pnpm package manager
- TypeScript (recommended for the best development experience)
Install the package
Choose your preferred package manager:Peer dependencies
The SDK has the following key dependencies that will be installed automatically:@solana/web3.js- Solana web3 library@coral-xyz/anchor- Anchor framework for Solana@solana/spl-token- SPL token program utilities
Environment setup
To use the SDK, you’ll need access to a Solana RPC endpoint. You can configure this through environment variables or directly in code.Using environment variables
Create a.env file in your project root:
.env
For development, you can use Solana’s public devnet RPC at
https://api.devnet.solana.com. For production, use a dedicated RPC provider like Helius, Triton, or QuickNode.Supported networks
The SDK supports all Solana cluster networks:- Mainnet (
mainnet-beta) - Production environment - Devnet (
devnet) - Development and testing - Testnet (
testnet) - Testing environment - Localnet (
localnet) - Local validator for development - Custom - Any custom RPC endpoint
Verify installation
Create a simple test file to verify the installation:test.ts
If you see the success message, you’re ready to start building with GLAM!