requestAirdrop - Solana

requestAirdrop. Requests a specific amount of test tokens to be airdropped to a given address

requestAirdrop - solana [Value: 5CU]
Requests a specific amount of test tokens to be airdropped to a given address
Use cases

Use cases

  • Request airdrops of SOL tokens for test accounts
  • Facilitate development by obtaining test SOL tokens
  • Simulate transactions by using airdropped SOL tokens
Constraints

Constraints

  • Limited to test and development purposes only
  • Dependent on availability of airdrop tokens
  • API rate limits may affect airdrop requests
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0", "id":1, "method":"requestAirdrop", "params": ["YOUR_WALLET_ADDRESS", 1000000000]}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": "3NxmvHHvWQZryyZB9xG3dEd9aYq1u5Q42H8sDfh1Ggj2JWdrWnD85N6hUtxXUL8hKtAphDBo8ZJ4JvXrjsoLs4M2",
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
accountPublicKeystring
The public key of the account to query.
lamportsinteger
The amount of lamports assigned to this account.
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
  • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
  • processed - The node will query its most recent block. Note that the block may not be complete

Response

200
The signature of the airdrop transaction, encoded in base-58.

Response params

object
idinteger
jsonrpcstring
resultstring