-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from solana-foundation/added-docs
feat: init docs
- Loading branch information
Showing
46 changed files
with
10,241 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
--- | ||
title: Solana Clusters | ||
--- | ||
|
||
Solana maintains several different clusters with different purposes. | ||
|
||
Before you begin make sure you have first | ||
[installed the Solana command line tools](cli/install-solana-cli-tools.md) | ||
|
||
Explorers: | ||
|
||
- [http://explorer.solana.com/](https://explorer.solana.com/). | ||
- [http://solanabeach.io/](http://solanabeach.io/). | ||
|
||
## 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 Beta: | ||
- Devnet tokens are **not real** | ||
- Devnet includes a token faucet for airdrops for application testing | ||
- 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 Beta. | ||
- Gossip entrypoint for Devnet: `entrypoint.devnet.solana.com:8001` | ||
- Metrics environment variable for Devnet: | ||
|
||
```bash | ||
export SOLANA_METRICS_CONFIG="host=https://metrics.solana.com:8086,db=devnet,u=scratch_writer,p=topsecret" | ||
``` | ||
|
||
- RPC URL for Devnet: `https://api.devnet.solana.com` | ||
|
||
##### Example `solana` command-line configuration | ||
|
||
```bash | ||
solana config set --url https://api.devnet.solana.com | ||
``` | ||
|
||
##### Example `solana-validator` command-line | ||
|
||
```bash | ||
$ solana-validator \ | ||
--identity validator-keypair.json \ | ||
--vote-account vote-account-keypair.json \ | ||
--known-validator dv1ZAGvdsz5hHLwWXsVnM94hWf1pjbKVau1QVkaMJ92 \ | ||
--known-validator dv2eQHeP4RFrJZ6UeiZWoc3XTtmtZCUKxxCApCDcRNV \ | ||
--known-validator dv4ACNkpYPcE3aKmYDqZm9G5EB3J4MRoeE7WNDRBVJB \ | ||
--known-validator dv3qDFk1DTF36Z62bNvrCXe9sKATA6xvVy6A798xxAS \ | ||
--only-known-rpc \ | ||
--ledger ledger \ | ||
--rpc-port 8899 \ | ||
--dynamic-port-range 8000-8020 \ | ||
--entrypoint entrypoint.devnet.solana.com:8001 \ | ||
--entrypoint entrypoint2.devnet.solana.com:8001 \ | ||
--entrypoint entrypoint3.devnet.solana.com:8001 \ | ||
--entrypoint entrypoint4.devnet.solana.com:8001 \ | ||
--entrypoint entrypoint5.devnet.solana.com:8001 \ | ||
--expected-genesis-hash EtWTRABZaYq6iMfeYKouRu166VU2xqa1wcaWoxPkrZBG \ | ||
--wal-recovery-mode skip_any_corrupted_record \ | ||
--limit-ledger-size | ||
``` | ||
|
||
The | ||
[`--known-validator`s](running-validator/validator-start.md#known-validators) | ||
are operated by Solana Labs | ||
|
||
## 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. | ||
- Testnet includes a token faucet for airdrops for application testing | ||
- Testnet typically runs a newer software release branch than both Devnet and | ||
Mainnet Beta | ||
- Gossip entrypoint for Testnet: `entrypoint.testnet.solana.com:8001` | ||
- Metrics environment variable for Testnet: | ||
|
||
```bash | ||
export SOLANA_METRICS_CONFIG="host=https://metrics.solana.com:8086,db=tds,u=testnet_write,p=c4fa841aa918bf8274e3e2a44d77568d9861b3ea" | ||
``` | ||
|
||
- RPC URL for Testnet: `https://api.testnet.solana.com` | ||
|
||
##### Example `solana` command-line configuration | ||
|
||
```bash | ||
solana config set --url https://api.testnet.solana.com | ||
``` | ||
|
||
##### Example `solana-validator` command-line | ||
|
||
```bash | ||
$ solana-validator \ | ||
--identity validator-keypair.json \ | ||
--vote-account vote-account-keypair.json \ | ||
--known-validator 5D1fNXzvv5NjV1ysLjirC4WY92RNsVH18vjmcszZd8on \ | ||
--known-validator dDzy5SR3AXdYWVqbDEkVFdvSPCtS9ihF5kJkHCtXoFs \ | ||
--known-validator Ft5fbkqNa76vnsjYNwjDZUXoTWpP7VYm3mtsaQckQADN \ | ||
--known-validator eoKpUABi59aT4rR9HGS3LcMecfut9x7zJyodWWP43YQ \ | ||
--known-validator 9QxCLckBiJc783jnMvXZubK4wH86Eqqvashtrwvcsgkv \ | ||
--only-known-rpc \ | ||
--ledger ledger \ | ||
--rpc-port 8899 \ | ||
--dynamic-port-range 8000-8020 \ | ||
--entrypoint entrypoint.testnet.solana.com:8001 \ | ||
--entrypoint entrypoint2.testnet.solana.com:8001 \ | ||
--entrypoint entrypoint3.testnet.solana.com:8001 \ | ||
--expected-genesis-hash 4uhcVJyU9pJkvQyS88uRDiswHXSCkY3zQawwpjk2NsNY \ | ||
--wal-recovery-mode skip_any_corrupted_record \ | ||
--limit-ledger-size | ||
``` | ||
|
||
The identities of the | ||
[`--known-validator`s](running-validator/validator-start.md#known-validators) | ||
are: | ||
|
||
- `5D1fNXzvv5NjV1ysLjirC4WY92RNsVH18vjmcszZd8on` - Solana Labs | ||
- `dDzy5SR3AXdYWVqbDEkVFdvSPCtS9ihF5kJkHCtXoFs` - MonkeDAO | ||
- `Ft5fbkqNa76vnsjYNwjDZUXoTWpP7VYm3mtsaQckQADN` - Certus One | ||
- `eoKpUABi59aT4rR9HGS3LcMecfut9x7zJyodWWP43YQ` - SerGo | ||
- `9QxCLckBiJc783jnMvXZubK4wH86Eqqvashtrwvcsgkv` - Algo|Stake | ||
|
||
## Mainnet Beta | ||
|
||
A permissionless, persistent cluster for Solana users, builders, validators and | ||
token holders. | ||
|
||
- Tokens that are issued on Mainnet Beta are **real** SOL | ||
- Gossip entrypoint for Mainnet Beta: `entrypoint.mainnet-beta.solana.com:8001` | ||
- Metrics environment variable for Mainnet Beta: | ||
|
||
```bash | ||
export SOLANA_METRICS_CONFIG="host=https://metrics.solana.com:8086,db=mainnet-beta,u=mainnet-beta_write,p=password" | ||
``` | ||
|
||
- RPC URL for Mainnet Beta: `https://api.mainnet-beta.solana.com` | ||
|
||
##### Example `solana` command-line configuration | ||
|
||
```bash | ||
solana config set --url https://api.mainnet-beta.solana.com | ||
``` | ||
|
||
##### Example `solana-validator` command-line | ||
|
||
```bash | ||
$ solana-validator \ | ||
--identity ~/validator-keypair.json \ | ||
--vote-account ~/vote-account-keypair.json \ | ||
--known-validator 7Np41oeYqPefeNQEHSv1UDhYrehxin3NStELsSKCT4K2 \ | ||
--known-validator GdnSyH3YtwcxFvQrVVJMm1JhTS4QVX7MFsX56uJLUfiZ \ | ||
--known-validator DE1bawNcRJB9rVm3buyMVfr8mBEoyyu73NBovf2oXJsJ \ | ||
--known-validator CakcnaRDHka2gXyfbEd2d3xsvkJkqsLw2akB3zsN1D2S \ | ||
--only-known-rpc \ | ||
--ledger ledger \ | ||
--rpc-port 8899 \ | ||
--private-rpc \ | ||
--dynamic-port-range 8000-8020 \ | ||
--entrypoint entrypoint.mainnet-beta.solana.com:8001 \ | ||
--entrypoint entrypoint2.mainnet-beta.solana.com:8001 \ | ||
--entrypoint entrypoint3.mainnet-beta.solana.com:8001 \ | ||
--entrypoint entrypoint4.mainnet-beta.solana.com:8001 \ | ||
--entrypoint entrypoint5.mainnet-beta.solana.com:8001 \ | ||
--expected-genesis-hash 5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d \ | ||
--wal-recovery-mode skip_any_corrupted_record \ | ||
--limit-ledger-size | ||
``` | ||
|
||
All four | ||
[`--known-validator`s](running-validator/validator-start.md#known-validators) | ||
are operated by Solana Labs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
title: Solana Cluster RPC Endpoints | ||
--- | ||
|
||
Solana maintains dedicated api nodes to fulfill [JSON-RPC](/api) requests for | ||
each public cluster, and third parties may as well. Here are the public RPC | ||
endpoints currently available and recommended for each public cluster: | ||
|
||
## Devnet | ||
|
||
#### Endpoint | ||
|
||
- `https://api.devnet.solana.com` - single Solana-hosted api node; rate-limited | ||
|
||
#### 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 | ||
|
||
#### Endpoint | ||
|
||
- `https://api.testnet.solana.com` - single Solana-hosted api node; rate-limited | ||
|
||
#### 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 Beta | ||
|
||
#### Endpoints\* | ||
|
||
- `https://api.mainnet-beta.solana.com` - Solana-hosted api node cluster, backed | ||
by a load balancer; rate-limited | ||
|
||
#### 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 | ||
|
||
\*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. |
Oops, something went wrong.