⚡ Dedicated Nodes for ETH, BSC, MATIC & other Blockchains at a Reduced Price!

sol

Solana (SOL)

Method: POST requestAirdrop

dropdown
POST

requestAirdrop

Method not allowed

Requests an airdrop of lamports to a Pubkey

Parameters

Pubkey - string

Pubkey of account to receive lamports, as base-58 encoded string

lamports - integer

lamports, as a u64

commitment - object

Optional.

commitment (used for retrieving blockhash and verifying airdrop success)

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "requestAirdrop",
"params": [null, null, null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}