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 de.net, 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)
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.