Source
request_airdropThe public devnet and testnet endpoints no longer serve airdrops:
requestAirdrop returns HTTP 410 (“The RPC faucet is closed on this
cluster”), and the Solana CLI reports it as a rate limit. Get devnet or
testnet SOL from the Solana Faucet. Use
requestAirdrop on a local network, such as Surfpool or
solana-test-validator at http://localhost:8899, as the examples on this
page do. Mainnet has no faucet.Parameters
pubkey
Pubkey of account to receive lamports, as a base-58 encoded string
lamports
Amount of lamports to airdrop
config
Configuration object containing the following fields:
Result
result
Transaction Signature of the airdrop, as a base-58 encoded string