Requests an airdrop of lamports to a Pubkey.
Supported on Solana (mainnet) only.
Parameters
<string>
- Pubkey of account to receive lamports, as base-58 encoded string<integer>
- lamports, as a u64- (optional)
<object>
- Configuration object containing the following field:- (optional)
commitment: <string>
- Commitment (used for retrieving blockhash and verifying airdrop success)
- (optional)
Returns
<string>
- Transaction Signature of airdrop, as base-58 encoded string
API Endpoint
The format of an Solana API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/solana/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/solana/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/solana/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1, "method":"requestAirdrop", "params":["83astBRguLMdt2h5U1Tpdq5tjFoJ6noeGwaY3mDLVcri", 1000000000]}'
Result
{
"jsonrpc": "2.0",
"result": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW",
"id": 1
}