1
Step 1: Visit the faucet
To use the faucet, head to the faucet landing page.
VISIT HEDERA FAUCET
2
Step 2: Fund your testnet account
- Enter your EVM wallet address in the Enter Wallet Address field and
- Click the RECEIVE 100 TESTNET HBAR button to initiate an auto account creation flow that creates and funds a new testnet account


Environment Variable Setup (Optional)
This section is for developers who want to set up their environment for production use. If you plan to use Hardhat, Foundry, or other development frameworks, complete this step to configure your environment variable. Skip if you’re just getting started.Setup .env file
Setup .env file
If you plan to use Hardhat, Foundry, or other development frameworks, you’ll want to set up environment variables:
-
Export your private key from MetaMask:
- Click the three dots menu → Account details → Show private key
- Copy the private key (64-character hex string)

For detailed instructions on exporting your private key, refer to this how-to
guide.
Keep your private keys secure. Anyone with access to them can control your
wallet and any funds.
- Create a
.envfile in your project directory with your account credentials
Warning
Storing private keys in a.env file is not considered best practice. There is always a risk of accidentally committing and pushing to a public GitHub repo and exposing your keys. Make it a habit to add .env to your .gitignore file as a precautionary measure.We highly advise against using a private key with mainnet funds.