Skip to content
To develop on Solana, you first need to connect to a Solana cluster.
ClusterRPC Endpoint
mainnethttps://api.mainnet.solana.com
devnethttps://api.devnet.solana.com
testnethttps://api.testnet.solana.com
localhosthttp://localhost:8899

​Connect using RPC URL

Connect to a specific RPC endpoint:

​Connect using the network moniker

You can also connect to a public RPC endpoint by specifying its network name (moniker):