Getting Tokens from Faucet
Get free test tokens for development
Getting Tokens from Faucet
In this tutorial, you'll learn how to get free BTZ tokens from the Beatoz Faucet for development and testing.
The Faucet provides free test tokens that have no real value. Use them for development only.
What is a Faucet?
A faucet is a service that provides free tokens on test networks. It allows developers to:
- Test transactions without spending real money
- Develop and debug smart contracts
- Experiment with blockchain features
Using the Beatoz Faucet
Step 1: Get Your Wallet Address
First, you need a Beatoz wallet address. If you don't have one, create it:
const { Web3 } = require('@beatoz/web3');
const web3 = new Web3('https://rpc-testnet0.beatoz.io');
const account = web3.beatoz.accounts.create();
console.log('Your Address:', account.address);
console.log('Private Key:', account.privateKey);
Save Your Private Key
Make sure to securely save your private key. You'll need it to access your tokens later.
Step 2: Visit the Faucet
Go to the Beatoz Faucet website:
TestnetStep 3: Select Network
Choose your target network:
- Testnet - For production-like testing
- Devnet - For development and experimentation
Step 4: Enter Your Address
Paste your wallet address into the input field. If the SDK returned a 40-character address without 0x, add the prefix before submitting it to Faucet.
Step 5: Claim Tokens
Click the "Claim BEATOZ" button to receive your tokens.
You should receive tokens within a few seconds!
Verifying Your Balance
After receiving tokens, verify your balance using the SDK:
const { Web3 } = require('@beatoz/web3');
async function checkBalance() {
const web3 = new Web3('https://rpc-testnet0.beatoz.io');
const address = '0x...your_address';
const account = await web3.beatoz.getAccount(address);
const balance = web3.utils.fromFons(account.value.balance, 'beatoz');
console.log('Balance:', balance, 'BTZ');
}
checkBalance();
Faucet Limits
Rate Limits
- Per Address: 1 request per 24 hours
- Amount: Check the faucet page for current amounts
Troubleshooting
"Address already claimed"
Wait 24 hours before requesting again, or use a different address.
"Invalid address"
Make sure your address:
- Starts with
0xwhen submitted to Faucet - Is 42 characters long
- Contains only valid hexadecimal characters
"Faucet empty"
The faucet may be temporarily out of funds. Try again later or use Devnet.
Network Configuration
| Network | Chain ID | RPC URL |
|---|---|---|
| Testnet | 0xbea701 | https://rpc-testnet0.beatoz.io |
Next Steps
Now that you have tokens, you can:
