1

enter image description here

Noob question:

I get this error when trying to run an anchor test as well, NOTE: Im on m1 chip

1 Answer 1

2

First run solana-test-validator in a separate terminal before running solana airdrop

If you'd like to switch to devnet, run solana config set --url devnet or solana config set -u d. Note on devnet you can only request to airdrop 2 sol at a time.

If at any time you'd like to check what cluster you're on, run solana config get

2
  • Thank you, devnet works, but testnet doesn't work for some reason
    – Ethan
    Commented Feb 17, 2023 at 20:46
  • I think testnet is generally used by validators, so airdropping might be disabled? docs.solana.com/clusters#testnet
    – john
    Commented Feb 17, 2023 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.