Skip to main content
This guide will show you how to create a faucet request and claim testnet funds within minutes. You will:
  • Create a wallet and a faucet request for each supported token standard
  • Claim testnet funds onchain
  • Return faucet transaction information and verify wallet balance(s)

Prerequisites

For UI (CDP Portal) option:

For programmatic option:

If you’re following the programmatic examples below, you should have your API key and wallet secret ready to initialize the CDP client.

UI (CDP Portal)

While the CDP Faucets API allows for programmatic faucet requests, you can also use the CDP Portal UI with a wallet address to claim funds in-browser. Assuming you completed the prerequisites, navigate to Faucets.
  1. Select a Network (either Base Sepolia, Ethereum Sepolia, or Solana Devnet).
  2. Select a Token (either ETH, USDC, EURC, cbBTC, or SOL).
  3. Enter a wallet address and click the Claim button.
Continue reading to programmatically claim testnet funds.

Programmatically

The majority of this quickstart will focus on claiming faucet funds using a new account created using our CDP non-custodial wallets. If you’d like to use your own wallet, skip to Step 4: Use an external address.

1. Setup CDP client and create an account

First, initialize the CDP client and create an account. Add your CDP API key and wallet secret to your environment:
Create a .env file with your credentials:
.env
Install dependencies and create an account:
Accounts are created for Base Sepolia by default. You can specify other EVM networks when making faucet requests.

2. Claim ETH from faucet

Continue reading to create an ETH faucet request.
ETH claim limits are capped at 1000 claims per every 24 hours at 0.0001 ETH per claim.
After running this example, you should see output similar to the following:

3. Claim ERC-20 token from faucet

Continue reading to create a request for (and claim) ERC-20 funds from a faucet.
ERC-20 claim limits are capped every 24 hours dependent on token symbol.
After creating your account, request faucet funds for ERC-20 tokens by specifying the token type.
After running this example, you should see output similar to the following:

4. Use an external address (optional)

You can also use your own wallet address to claim faucet funds directly. Simply provide your address to the faucet request.
You can monitor the transaction status by checking the blockchain explorer link provided in the response.
After running this example, you should see output similar to the following:

Video: Watch and learn

Watch this video for a walkthrough of using faucets in CDP Portal: