Skip to main content

Libraries

Install @solana/web3.js (v1) for transaction handling and @solana/spl-token for SPL token operations:
This documentation uses @solana/web3.js v1. Version 2 has a different API for transaction handling.

RPC Connection

Solana provides a default RPC endpoint, but as your application grows, use a dedicated provider like Helius or Triton.

Development Wallet

Never hardcode private keys in source code. Use environment variables or the Solana CLI keyfile.