I am familiar with 'airdrop' to get test Sol in devnet wallets:
var airdropSignature = await connection.requestAirdrop(publicKey, lamports);
const latestBlockHash = await connection.getLatestBlockhash();
await connection.confirmTransaction({
blockhash: latestBlockHash.blockhash,
lastValidBlockHeight: latestBlockHash.lastValidBlockHeight,
signature: airdropSignature,
});
But how do I get test SPL tokens like USDC in Devnet? The circle USDC docs simply state:
The USDC Solana SPL token has been deployed to the Devnet and is available on address 4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU.
That's not a lot of information. I can happily generate wallets, and send SPL tokens between wallets once I have some SPL tokens - but how do I get some test USDC for use on Solana devnet?
Use https://faucet.circle.com/.
It is official USDC devnet faucet for Solana.