> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# Clusters and Public RPC Endpoints

> Solana's clusters (mainnet, devnet, and testnet): what each is for, its public RPC endpoint, and its rate limits.

## In short

Devnet is a free public test network that behaves like the real one (mainnet), with play money. Same code, different URL.

<div className="sol-usedin not-prose" data-concept="clusters">
<span className="sol-usedin-label">You've used this in:</span> [Payments <span className="sol-usedin-step">Step 1</span>](/developers/docs/payments/checkout/try-it)
</div>

The Solana blockchain has several different groups of validators, known as
Clusters. Each serving different purposes within the overall ecosystem and
containing dedicated API nodes to fulfill [JSON-RPC](/developers/docs/rpc/) requests for
their respective Cluster.

The individual nodes within a Cluster are owned and operated by third parties,
with a public endpoint available for each.

## Solana public RPC endpoints

The Solana Labs organization operates a public RPC endpoint for each Cluster.
Each of these public endpoints are subject to rate limits, but are available for
users and developers to interact with the Solana blockchain.

> Public endpoint rate limits are subject to change. The specific rate limits
> listed on this document are not guaranteed to be the most up-to-date.

For production infrastructure, use the [RPC provider guide](/developers/docs/rpc/providers)
to compare private services and find the maintained provider directory.

### Using explorers with different Clusters

Many of the popular Solana blockchain explorers support selecting any of the
Clusters, often allowing advanced users to add a custom/private RPC endpoint as
well.

An example of some of these Solana blockchain explorers include:

- [http://explorer.solana.com/](https://explorer.solana.com/).
- [http://orb.helius.dev/](https://orb.helius.dev/).
- [http://solana.fm/](https://solana.fm/).
- [http://solscan.io/](https://solscan.io/).
- [http://solanabeach.io/](http://solanabeach.io/).
- [http://validators.app/](http://validators.app/).

## On a high level

- Mainnet: Live production environment for deployed applications.
- Devnet: Testing with public accessibility for developers experimenting with
  their applications.
- Testnet: Stress-testing for network upgrades and validator performance.

**Example use cases**: You may want to debug a new program on devnet or verify
performance metrics on testnet before mainnet deployment.

| **Cluster** | **Endpoint**                     | **Purpose**                    | **Notes**                      |
| ----------- | -------------------------------- | ------------------------------ | ------------------------------ |
| Mainnet     | `https://api.mainnet.solana.com` | Live production environment    | Requires SOL for transactions  |
| Devnet      | `https://api.devnet.solana.com`  | Public testing and development | Free test SOL from the [Solana Faucet](https://faucet.solana.com) |
| Testnet     | `https://api.testnet.solana.com` | Validator and stress testing   | May have intermittent downtime |

## Devnet

Devnet serves as a playground for anyone who wants to take Solana for a test
drive, as a user, token holder, app developer, or validator.

- Application developers should target devnet.
- Potential validators should first target devnet.
- Key differences between devnet and mainnet:
  - Devnet tokens are **not real**
  - Free devnet SOL for application testing comes from the
    [Solana Faucet](https://faucet.solana.com). The RPC airdrop
    (`requestAirdrop`, `solana airdrop`) is closed on devnet.
  - Devnet may be subject to ledger resets
  - Devnet typically runs the same software release branch version as Mainnet
    Beta, but may run a newer minor release version than mainnet.
- Gossip entrypoint for devnet: `entrypoint.devnet.solana.com:8001`

### Devnet endpoint

- `https://api.devnet.solana.com` - single Solana Labs hosted API node;
  rate-limited

#### Example `solana` command-line configuration

To connect to the `devnet` Cluster using the Solana CLI:

```shell
solana config set --url https://api.devnet.solana.com
```

### Devnet rate limits

- Maximum number of requests per 10 seconds per IP: 100
- Maximum number of requests per 10 seconds per IP for a single RPC: 40
- Maximum concurrent connections per IP: 40
- Maximum connection rate per 10 seconds per IP: 40
- Maximum amount of data per 30 second: 100 MB

## Testnet

Testnet is where the Solana core contributors stress test recent release
features on a live cluster, particularly focused on network performance,
stability, and validator behavior.

- Testnet tokens are **not real**
- Testnet may be subject to ledger resets.
- Free testnet SOL comes from the [Solana Faucet](https://faucet.solana.com).
  The RPC airdrop (`requestAirdrop`, `solana airdrop`) is closed on testnet.
- Testnet typically runs a newer software release branch than both devnet and
  mainnet
- Gossip entrypoint for testnet: `entrypoint.testnet.solana.com:8001`

### Testnet endpoint

- `https://api.testnet.solana.com` - single Solana Labs API node; rate-limited

#### Example `solana` command-line configuration

To connect to the `testnet` Cluster using the Solana CLI:

```shell
solana config set --url https://api.testnet.solana.com
```

### Testnet rate limits

- Maximum number of requests per 10 seconds per IP: 100
- Maximum number of requests per 10 seconds per IP for a single RPC: 40
- Maximum concurrent connections per IP: 40
- Maximum connection rate per 10 seconds per IP: 40
- Maximum amount of data per 30 second: 100 MB

## Mainnet

A permissionless, persistent cluster for Solana users, builders, validators, and
token holders.

- Tokens that are issued on mainnet are **real** SOL
- Gossip entrypoint for mainnet: `entrypoint.mainnet-beta.solana.com:8001`

### Mainnet endpoint

- `https://api.mainnet.solana.com` - Solana Labs hosted API node cluster, backed
  by a load balancer; rate-limited

#### Example `solana` command-line configuration

To connect to the `mainnet` Cluster using the Solana CLI:

```shell
solana config set --url https://api.mainnet.solana.com
```

### Mainnet rate limits

- Maximum number of requests per 10 seconds per IP: 100
- Maximum number of requests per 10 seconds per IP for a single RPC: 40
- Maximum concurrent connections per IP: 40
- Maximum connection rate per 10 seconds per IP: 40
- Maximum amount of data per 30 seconds: 100 MB

> The public RPC endpoints are not intended for production applications. Please
> use dedicated/private RPC servers when you launch your application, drop NFTs,
> etc. The public services are subject to abuse and rate limits may change
> without prior notice. Likewise, high-traffic websites may be blocked without
> prior notice.

## Common HTTP Error Codes

- 403 -- Your IP address or website has been blocked. It is time to run your own
  RPC server(s) or find a private service.
- 429 -- Your IP address is exceeding the rate limits. Slow down. Use the
  [Retry-After](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After)
  HTTP response header to determine how long to wait before making another
  request.
