Requests an airdrop of lamports to a Pubkey (does not work on mainnet).
This method will use 30
Compute Units.
pubkey
string. The Pubkey of account to receive lamports, as a base-58 encoded string.
lamports
integer The lamports to airdrop, as a u64.
object
optional. Configuration object containing the following fields:
commitment
string. The level of commitment required for the query. The options include:
finalized
string. The node will query the most recent block confirmed by the supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized.
confirmed
string. The node will query the most recent block that has been voted on by the supermajority of the cluster.
processed
string. The node will query its most recent block. Note that the block may not be complete.
minContextSlot
integer. The minimum slot at which the request can be evaluated.
result
The transaction signature of the airdrop, as a base-58 encoded string.
Note: This method does not work on mainnet.