Validator
Synchronization
Ensure block height "latest_block_height" synchronization. https://explorer.mtt.network/blocks
mttd status
print like this:
{
"NodeInfo": {
"protocol_version": {
"p2p": "8",
"block": "11",
"app": "0"
},
"id": "57bb230841eb8cb5dd4fd9572cc8d35093edd048",
"listen_addr": "tcp://0.0.0.0:26656",
"network": "mtt_6880-1",
"version": "0.37.2",
"channels": "40202122233038606100",
"moniker": "mtt-node-1",
"other": {
"tx_index": "on",
"rpc_address": "tcp://0.0.0.0:26657"
}
},
"SyncInfo": {
"latest_block_hash": "EE206573D13D02828747C058515486484BB40B15B5C3BF3249BB8A919C768B37",
"latest_app_hash": "89C9245E8AD4FB9465C74884DE618B7FF6985DB5A67DF4470F88303EFA959A35",
"latest_block_height": "5742976",
"latest_block_time": "2025-01-01T06:52:40.193665797Z",
"earliest_block_hash": "D9AC348DE662C27CBDDB66D2A7462537A60C770591952F7901E05A8FD18F26AA",
"earliest_app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"earliest_block_height": "1",
"earliest_block_time": "2024-06-11T10:51:01.477179159Z",
"catching_up": false
},
"ValidatorInfo": {
"Address": "961F94FED99E5E37A915EA18F99B2D13090097A4",
"PubKey": {
"type": "tendermint/PubKeyEd25519",
"value": "Wc/JpfOSJGUs6tk14Yd0kb2Jlk0WI10CvwP6ZJcgAKg="
},
"VotingPower": "2378122"
}
}
Creat a Validator Wallet
mttd keys add alice --home HOMEDIR --keyring-backend file
It will print a message similar to the following (⚠️: Please do not use the following address, as the private key is exposed).
Re-enter keyring passphrase:
- address: mtt1wquq2cfc7dcjyg429ytc5gveckfd7lc9e0jfqg
name: alice
pubkey: '{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey","key":"AlW+clWNea0SLQhaqoqC230VmM92jbkM5y3ajDR8Gbip"}'
type: local
**Important** write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
crop salon culture stamp stomach across eight napkin hidden mad screen shy picture right deliver vicious world couch endless milk found village shadow happy
Obtain wallet address
Run the following command to obtain the EVM address, and replace it with your own address starting with "mtt".
mttd debug addr mtt1wquq2cfc7dcjyg429ytc5gveckfd7lc9e0jfqg
Print like this:
Address bytes: [112 56 - 97 56 - 113 - 34 - 41 23 138 - 153 197 146 223 127 5]
Address (hex): 7038056138F371----------8A2199C592DF7F05
Address (EIP-55): 0x70-------------------9178A2199c592df7F05
Bech32 Acc: mtt1wquq2cfc7dcjyg429ytc5gveckfd7lc9e0jfqg
Bech32 Val: mttvaloper1wquq2cfc7dcjyg429ytc5gveckfd7lc9xml4r4
Address (EIP-55): 0x70-------------------9178A2199c592df7F05 is the EVM address. You need to transfer funds to this address in order to proceed to the next step.
EVM network configuration
If you need to add a network, you can open it.
[chain list](https://chainlist.org/?search=6880 "mtt explorer")
Creat a Validator
You can view the pubkey
using :
mttd tendermint show-validator --home HOMEDIR
Print like this:
{"@type":"/cosmos.crypto.ed25519.PubKey","key":"0loT2LrdSncdg2PoWd+te5keYoM08Dy/q7rH/6RUgc8="}
Staking operation
The current command stakes 1 million MTT by default. You can modify the amount, with a minimum of 10,000 . Note that 1 MTT = 1e18 aMTT
, so the staking amount includes 18 additional zeros.
MONIKER , WEBSITE and DETAIL
are the parameters that can be modified according to your needs.
commission-rate, commission-max-rate and commission -max-change-rate
are the parameters related to charging the commission fee to the delegators.
mttd tx staking create-validator --amount 1000000000000000000000000amtt --pubkey '{"@type":"/cosmos.crypto.ed25519.PubKey","key":"0loT2LrdSncdg2PoWd+te5keYoM08Dy/q7rH/6RUgc8="}' --moniker MONIKER --website WEBSITE --details DETAIL --from alice --fees 20000000000000000amtt --commission-rate="0.05" --commission-max-rate="0.20" --commission-max-change-rate="0.01" --min-self-delegation="1000000000000000000000" --gas auto --gas-adjustment 1.2 --home HOMEDIR --keyring-backend file
Then, check if the operation was successful.
mttd q staking validator mttvaloper1wquq2cfc7dcjyg429ytc5gveckfd7lc9xml4r4
mttvaloper1wquq2cfc7dcjyg429ytc5gveckfd7lc9xml4r4 is the "Bech32 Val:" part output from the wallet address. If detailed information is found, it indicates that the node creation was successful.
Community
For discussions on proposals and node upgrades, please join the community for more details.
Discord: https://discord.gg/2PuApkRJjv
Last updated