Heroes of Nft
Search…
⌃K

Hero Testnet

Hero Testnet details and how to connect

Subnet Details

VM ID: nzfDQr8VpSZwsJNTqqDPiDGCPc79GLe7QL3qdTbCkPJ8MFevG
Subnet ID: 2MCNtqDyTQp7nAnj2iTREG7jdeJa3QRYWjvGvQh5uc9EqDmLTH
Chain ID: p91WZe6xXivSgCBZwWwJmAfyxM92r819G7sqqRrYYRPzy49bP

Subnet network parameters:

Network ID: 17771
Chain ID: 17771
Block Gas Limit: 16,000,000
10s Gas Target: 24,000,000
Min Fee: 24 GWei
Target Block Rate: 2s (Same as C-Chain)

Validators

  • Validator 10
    • ID: NodeID-6tWHHU9uVWAf46qTYTsnTnVZJeL65hwgR
    • IP: 173.249.33.39
  • Validator 1
    • ID: NodeID-AGSMAmA7HStwbKCJAYpBzBvDmjyd6BVvd
    • IP: 154.12.249.187
  • Validator 2
    • ID: NodeID-7iWipVaLBfGSMjY6WNCXiWtY5yKLe1kTx
    • IP: 66.94.125.28

Adding to MetaMask

Network Name: Hero Testnet
RPC URL: https://testnet.heroesofnft.com:443/ext/bc/p91WZe6xXivSgCBZwWwJmAfyxM92r819G7sqqRrYYRPzy49bP/rpc
Chain ID: 17771
Symbol: HRM
Explorer: https://testnet.avascan.info/blockchain/hero/

Genesis Data

Hero testnet genesis data JSON as follows:
file: hero-testnet-genesis.json
1
{
2
"config": {
3
"chainID": 17771,
4
"homesteadBlock": 0,
5
"eip150Block": 0,
6
"eip150Hash": "0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0",
7
"eip155Block": 0,
8
"eip158Block": 0,
9
"byzantiumBlock": 0,
10
"constantinopleBlock": 0,
11
"petersburgBlock": 0,
12
"istanbulBlock": 0,
13
"muirGlacierBlock": 0,
14
"subnetEVMTimestamp": 0,
15
"feeConfig": {
16
"gasLimit": 16000000,
17
"minBaseFee": 24000000000,
18
"targetGas": 24000000,
19
"baseFeeChangeDenominator": 36,
20
"minBlockGasCost": 0,
21
"maxBlockGasCost": 10000000,
22
"targetBlockRate": 2,
23
"blockGasCostStep": 500000
24
},
25
"allowFeeRecipients": false,
26
"contractDeployerAllowListConfig": {
27
"blockTimestamp": 0,
28
"adminAddresses": ["0x0ed6431f48560e943cc8c1edeae3d7f7edde46a7"]
29
},
30
"contractNativeMinterConfig": {
31
"blockTimestamp": 0,
32
"adminAddresses": ["0x0ed6431f48560e943cc8c1edeae3d7f7edde46a7"]
33
},
34
"feeManagerConfig": {
35
"blockTimestamp": 0,
36
"adminAddresses": ["0x0ed6431f48560e943cc8c1edeae3d7f7edde46a7"],
37
"enabledAddresses": []
38
}
39
},
40
"alloc": {
41
"0ed6431f48560e943cc8c1edeae3d7f7edde46a7": {
42
"balance": "100000000000000000000000000"
43
}
44
},
45
"timestamp": "0x0",
46
"gasLimit": "0xF42400",
47
"difficulty": "0x0",
48
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
49
"coinbase": "0x0000000000000000000000000000000000000000",
50
"number": "0x0",
51
"gasUsed": "0x0",
52
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
53
}

Joining Hero Testnet

To setup the node for joining Hero Testnet, first we have to join the Avalanche Fuji testnet then install subnet-evm to plugins with the correct VM ID.
# First download go
# install the version > 1.18.1
wget https://go.dev/dl/go1.18.8.linux-amd64.tar.gz
# install go
sudo tar -C /usr/local -xzf go1.18.8.linux-amd64.tar.gz
# add go to $PATH by using avalanche/validators/.profile
# copy the content to the last line of user .profile file
echo "export PATH=$PATH:/usr/local/go/bin:/home/admin/go/bin" >>> .profile
# use updated .profile
source .profile
####################################
# Prebuilt Binaries
# Use avalanche-installer script to join Avalanche Fuji network
# **NOTE:** This script uses **sudo**
wget -nd -m https://raw.githubusercontent.com/ava-labs/avalanche-docs/master/scripts/avalanchego-installer.sh;\
chmod 755 avalanchego-installer.sh;\
./avalanchego-installer.sh
# - OR - Directly download the latest pre-built binary to join Avalanche Fuji
cd ~
wget https://github.com/ava-labs/avalanchego/releases/download/vx.x.x/avalanchego-<distro>-vx.x.x.zip
unzip avalanchego-<distro>-v<x.x.x>.zip
# rename the build folder into avalanche-node
mv build avalanche-node
# Download the subnet-evm binaries for joining Hero Testnet
# darwin amd64 for apple amd chips / darwin for arm64 (apple m series chips)
wget https://github.com/ava-labs/subnet-evm/releases/download/vx.x.x/subnet-evm_x.x.x_<distro>_<chip>.tar.gz
tar xfz subnet-evm_x.x.x_<distro>_<chip>.tar.gz
mv subnet-evm nzfDQr8VpSZwsJNTqqDPiDGCPc79GLe7QL3qdTbCkPJ8MFevG
# copy plugin to avalanchego/plugins
cp ./nzfDQr8VpSZwsJNTqqDPiDGCPc79GLe7QL3qdTbCkPJ8MFevG ~/avalanche-node/plugins/
# ** Configs **
# Local node config for whitelisting Hero Subnet & connecting to Fuji
vim ~/.avalanchego/configs/node.json
# paste content below
{
"http-host": "127.0.0.1",
"http-port": 9650,
"network-id": "fuji",
"whitelisted-subnets": "2MCNtqDyTQp7nAnj2iTREG7jdeJa3QRYWjvGvQh5uc9EqDmLTH"
}
# Vm alias config
vim ~/.avalanchego/vms/aliases.json
# paste content below
{
"nzfDQr8VpSZwsJNTqqDPiDGCPc79GLe7QL3qdTbCkPJ8MFevG": ["hero", "herovm", "hvm"]
}
# Execute !
./avalanche-node/avalanchego --config-file=~/.avalanchego/configs/node.json