Testnet Configuration
Testnet In Development
The Diamondz Shadow testnet is currently under development and not yet live. This documentation is being prepared in advance and will be updated when the testnet is launched.
Connect to Our Testnet
The Diamondz Shadow testnet is a sandbox environment where you can deploy and test your applications before moving to mainnet. This guide will help you configure your development tools to connect to our testnet.
Network Information
Testnet Details
RPC Endpoints
https://rpc.testnet.diamondzshadow.net
wss://ws.testnet.diamondzshadow.net
Wallet Configuration
To interact with the Diamondz Shadow testnet, you'll need to configure your wallet. We recommend using MetaMask, but any Ethereum-compatible wallet should work.
MetaMask Configuration
Open MetaMask and click on the network dropdown at the top of the extension
Select "Add Network" or "Custom RPC"
Fill in the network details:
Network Name:Diamondz Shadow TestnetNew RPC URL:https://rpc.testnet.diamondzshadow.netChain ID:42069Currency Symbol:ETHBlock Explorer URL:https://explorer.testnet.diamondzshadow.netClick "Save" to add the network
Programmatic Network Addition
You can also add the network programmatically using the MetaMask API:
// Request to add the Diamondz Shadow Testnet
await window.ethereum.request({
method: 'wallet_addEthereumChain',
params: [{
chainId: '0xA455', // 42069 in hexadecimal
chainName: 'Diamondz Shadow Testnet',
nativeCurrency: {
name: 'Ethereum',
symbol: 'ETH',
decimals: 18
},
rpcUrls: ['https://rpc.testnet.diamondzshadow.net'],
blockExplorerUrls: ['https://explorer.testnet.diamondzshadow.net']
}]
})
Getting Testnet ETH
To deploy contracts and interact with the testnet, you'll need testnet ETH. You can get testnet ETH from our faucet:
Testnet Faucet
Visit our faucet to request testnet ETH for development and testing:
Request Testnet ETHThe faucet has a limit of 1 ETH per address per day to ensure fair distribution.
Development Tools Configuration
Hardhat Configuration
To configure Hardhat to work with the Diamondz Shadow testnet, add the following to your hardhat.config.js
file:
module.exports = {
networks: {
diamondzShadowTestnet: {
url: "https://rpc.testnet.diamondzshadow.net",
accounts: [process.env.PRIVATE_KEY],
chainId: 42069,
gasPrice: 1000000000, // 1 gwei
},
},
// rest of your config
};
Foundry Configuration
To configure Foundry to work with the Diamondz Shadow testnet, add the following to your foundry.toml
file:
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
[rpc_endpoints]
diamondz_shadow = "https://rpc.testnet.diamondzshadow.net"
ethers.js Configuration
To connect to the Diamondz Shadow testnet using ethers.js:
import { ethers } from "ethers";
// Connect to the Diamondz Shadow testnet
const provider = new ethers.providers.JsonRpcProvider(
"https://rpc.testnet.diamondzshadow.net"
);
// Create a signer
const privateKey = process.env.PRIVATE_KEY;
const wallet = new ethers.Wallet(privateKey, provider);
web3.js Configuration
To connect to the Diamondz Shadow testnet using web3.js:
const Web3 = require('web3');
// Connect to the Diamondz Shadow testnet
const web3 = new Web3('https://rpc.testnet.diamondzshadow.net');
// Add account
const privateKey = process.env.PRIVATE_KEY;
const account = web3.eth.accounts.privateKeyToAccount(privateKey);
web3.eth.accounts.wallet.add(account);
Verifying Contracts
You can verify your smart contracts on our block explorer. We support verification through Hardhat and Foundry.
Hardhat Verification
npx hardhat verify --network diamondzShadowTestnet <CONTRACT_ADDRESS> <CONSTRUCTOR_ARGS>
Foundry Verification
forge verify-contract <CONTRACT_ADDRESS> <CONTRACT_NAME> --chain diamondz_shadow --watch
Need Help?
If you encounter any issues connecting to the testnet or have questions, you can reach out to our developer community:
- GitHub - Open issues or contribute to our repositories
- Discord - Join our developer community
- Email Support - Contact our developer relations team