Faucets
Obtain test tokens for development and testing on HashKey Chain networks
Faucets are essential tools for blockchain developers, allowing you to obtain free test tokens for development, testing, and deployment on test networks. HashKey Chain provides faucet options for both direct testnet HSK acquisition and bridged tokens.
HashKey Chain Testnet Faucet
HashKey Chain Testnet Faucet (faucet.hsk.xyz)
The official HashKey Chain Testnet Faucet provides free HSK tokens for development and testing. These tokens have no real-world value but allow you to interact with the network without spending real assets.
Usage Instructions
- Connect your wallet to the HashKey Chain Testnet
- Visit the faucet website and enter your wallet address
- Complete any verification steps if required
- Receive testnet HSK directly to your wallet
- Use these tokens for deploying contracts and sending transactions
Rate Limits:
The HashKey Chain Testnet Faucet may have request limits to prevent abuse. If you need a larger amount of testnet tokens for development purposes, please contact the HashKey Chain team directly.
Alternative: Bridge Method
For developers who need a larger quantity of testnet tokens or who are already working with Sepolia testnet, HashKey Chain offers a bridge option.
Step-by-Step Bridge Process
-
Acquire Sepolia ETH
Obtain Sepolia ETH from a Sepolia Faucet or other provider. Sepolia is an Ethereum testnet commonly used for development. -
Convert to Wrapped ETH (WETH)
Convert your Sepolia ETH to Wrapped ETH (WETH) using the contract'sdeposit()
function. -
Bridge Your Tokens
Use the HashKey Chain Testnet Bridge to transfer your WETH from Sepolia to HashKey Chain Testnet. -
Receive Testnet HSK
After the bridge transaction completes, you'll receive testnet HSK on HashKey Chain Testnet, which can be used for all testing and development activities.
// Example: Depositing ETH into WETH contract on Sepolia
const wethContract = new ethers.Contract(
"0x7b79995e5f793a07bc00c21412e50ecae098e7f9",
wethAbi,
signer
);
// Convert 0.1 ETH to WETH
const tx = await wethContract.deposit({ value: ethers.utils.parseEther("0.1") });
await tx.wait();
console.log("Successfully wrapped 0.1 ETH to WETH on Sepolia");
Best Practices for Faucet Usage
Development Environment: Create separate development wallets for testing purposes to keep test tokens separate from your main wallets.
Resource Conservation: Use testnet resources responsibly. Only request tokens when needed, and recycle existing testnet tokens by sending them back to your own accounts for reuse.
Transaction Testing: Start with small transactions to verify functionality before submitting larger transactions or complex contract deployments.
For specific questions about obtaining larger amounts of testnet tokens or issues with the faucet, please reach out to the HashKey Chain developer support team.