solana airdrop and the requestAirdrop RPC method return HTTP 410 there,
and the Solana CLI reports it as a rate limit. Use a web faucet for devnet and
testnet SOL, and airdrop only on a local validator.
1. Web Faucet
Available for Devnet- faucet.solana.com - A public web faucet hosted by the Solana Foundation
- QuickNode - A web faucet operated by QuickNode
- DevnetFaucet.org - A web faucet with a rate limit separate than the public RPC endpoints, operated by @Ferric
- Blueshift Faucet - A web faucet for Blueshift NFT holders
- Pine Stake Faucet - A public web faucet hosted by Pine Stake
- faucet.solana.com - A public web faucet hosted by the Solana Foundation
- QuickNode - A web faucet operated by QuickNode
- TestnetFaucet.org - A web faucet with a rate limit separate than the public RPC endpoints, operated by @Ferric
- Blueshift Faucet - A web faucet for Blueshift NFT holders
- Pine Stake Faucet - A public web faucet hosted by Pine Stake
2. RPC Provider Faucets
Available for Devnet RPC Providers can opt in to distributing devnet SOL via their devnet Validators.If you are an RPC Provider and want to distribute SOL please get in touch here.Currently supported:
Using the Solana CLI
Specify your Cluster to be your RPC provider’s URL:Using Web3.js
@solana/web3.js 1.x is no longer actively maintainedIt receives critical fixes only. Use Kit for new code. To migrate existing code, follow the Kit upgrade guide, or the web3.js v3 migration guide to keep the class-based API.To run this code, install 1.x with npm install @solana/web3.js@1. A plain npm install @solana/web3.js installs v3, which this code doesn’t run on.3. Discord Faucets
Various Discord communities have setup devnet SOL Faucets as BOTs.| Community | Usage | Link |
|---|---|---|
| The 76 Devs | Run !gibsol in the BOT commands channel. | Join Server |
4. Airdrop on a local validator
Available on a local validator A local validator, such as Surfpool (surfpool start) or
solana-test-validator, runs its own faucet and serves airdrops on its RPC
endpoint, http://localhost:8899. Here are two ways of requesting one:
Using the Solana CLI:
Using web3.js:
@solana/web3.js 1.x is no longer actively maintainedIt receives critical fixes only. Use Kit for new code. To migrate existing code, follow the Kit upgrade guide, or the web3.js v3 migration guide to keep the class-based API.To run this code, install 1.x with npm install @solana/web3.js@1. A plain npm install @solana/web3.js installs v3, which this code doesn’t run on.requestAirdrop()
documentation inside web3.js, and
Getting Test SOL for the same call
in Kit, Rust, Python and Go.
5. Reuse devnet SOL
The most sustainable way to save SOL is to reuse it. With the Solana CLI you can list all of your buffer accounts with the following command:What’s a buffer account?Buffer accounts are automatically created when you deploy a program. All the
program’s data is transferred into this account during the deployment. When it’s
done, the data of your program is replaced with the new data.
show subcommand to list all programs you have already
deployed to your currently selected cluster:
close subcommand to retrieve the SOL
you used to deploy it. The CLI only closes a program when you pass
--bypass-warning, because a closed program id can’t be used again:
You will NOT be able to use the same program id again once you closed the
program. So make sure you are closing the right program and that you will not
need that id anymore.If you get rate limited by the RPC endpoint your Solana CLI is configured to
use, you can add
-u "urlToYourRpc" to any of these commands to use a
different RPC endpoint.