Interact with the blockchain
MXPY
To interact with the blockchain and make transactions, you need to install mxpy. You can find more detailed installation instructions and additional setup steps for mxpy here.
Configure mxpy Address HRP
mxpy config set default_address_hrp one
For the validator pem to interact with the mxpy we need to create a json with the path having the following structure
{
"validators": [
{
"pemFile": "validatorKey.pem"
}
]
}Add a validator
mxpy validator stake \
--pem=walletKey.pem \
--value="2500000000000000000000" \
--validators-file=validator.json \
--proxy="https://gateway.validators.onefinity.network" \
--gas-limit 25000000 \
--recall-nonce \
--sendUnstake a validator
mxpy validator unstake \
--pem=walletKey.pem \
--nodes-public-keys address \
--proxy="https://gateway.validators.onefinity.network" \
--gas-limit 25000000 \
--recall-nonce \
--sendLast updated