requestAirdrop
Requests an airdrop of lamports to a Pubkey
Parameters
Pubkey <string>
- Pubkey of account to receive lamports, as a base-58 encoded string
Lamports <integer>
- lamports to airdrop, as a "u64"
Result
<string>
- Transaction Signature of the airdrop, as a base-58 encoded string
Code sample
curl "https://testnet.atlas.xyz/?apikey=$ATLAS_API_KEY" -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": "0bdba4c1-3073-41b0-b849-46f14e004e38",
"method": "requestAirdrop",
"params": [
"2vysyGPWHzMGF8zdnauj3LnML89XKmReXiD1DjvXKZmF",
1000000000
]
}
'
Response
{
"jsonrpc": "2.0",
"id": "0bdba4c1-3073-41b0-b849-46f14e004e38",
"result": "5tyK6wNbHzNWk1baqsZrMGdRGXsWDbzpRHhCbaC17BxKhQVoN63YoCfGQGQe7c1LJodFt8zkwzndLUWt62TcvG2z"
}