Solana Airdrop: Error: airdrop request failed. This can happen when the rate limit is reached

1.1k views Asked by At

tried:

solana airdrop 1
solana airdrop 1 <address> --url devnet
solana airdrop 1 <address> --url https://api.devnet.solana.com

all returns this error:

Error: airdrop request failed. This can happen when the rate limit is reached.

i can confirm that my cli config is set to devnet, also it affects my typescript function airdropSol() which returns an error:

Error: airdrop to GFfY2JVH2iB9gRmg7oKdwgGJcbXuhGu8vEsMY5yJryeq failed: Internal error
at Connection.requestAirdrop (/home/user/hellow_world/node_modules/@solana/web3.js/src/connection.ts:3905:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
1

There are 1 answers

0
Owen Alikula On

Try running this

curl -v https://api.devnet.solana.com --resolve api.devnet.solana.com:443:139.178.65.155 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"requestAirdrop", "params":["<wallet pub key>", 1000000000]}'

more expannation - https://solana.stackexchange.com/a/4240/3028