Connecting to a Solana Environment
When you are working on Solana development, you will need to connect to a specific RPC API endpoint. Solana has 3 public development environments:
- mainnet-beta https://api.mainnet-beta.solana.com
- devnet https://api.devnet.solana.com
- testnet https://api.testnet.solana.com
Finally, you can also connect to a private cluster, either one local or running remotely with the following: