Home > Enterprise >  How do I get some test USDC for use on Solana devnet?
How do I get some test USDC for use on Solana devnet?

Time:07-12

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?

CodePudding user response:

The testnet USDC faucet is available at https://www.usdcfaucet.com/

CodePudding user response:

This website will send you devnet USDC https://usdcfaucet.com/

However, since mainnet and devnet USDC mint addresses are different it's easier to create your own mint and use it as USDC. This will give you more control on how much you can mint.

  • Related