Step 6
Using a different DNS name or an IP address
Retrieve the account address of your validator’s delegation pool:
Rotate the Network Address.
Define Variables
# Define Network Type
NETWORK="testnet" # Change to "mainnet" if running on mainnet
# Specify the IP address.
IP_ADDRESS="your_ip_address"
# New Validator Node Address (IP or DNS)
NEW_ADDRESS="your_ip_or_dns"
# The new instance's address where the validator will be migrated.
# This can be either an IP address (e.g., 192.168.1.100) or a DNS name (e.g., validator.example.com)
# Operator Profile Name
PROFILE_NAME="your_profile_name"
# The name of the CLI profile that contains the operator's account address.
# Retrieve this by running on v8.0.2: `supra profile -l`.
# RPC Endpoint
RPC_URL="your_rpc_url"
# The RPC URL for network communication.
# Use the appropriate endpoint for testnet or mainnet.
# Delegation Pool Address
DELEGATION_POOL_ADDRESS="your_delegation_pool_address"
# The delegation pool address associated with your validator.
# Determine the container name based on network type
if [ "$NETWORK" = "mainnet" ]; then
CONTAINER_NAME="supra_mainnet_$IP_ADDRESS"
else
CONTAINER_NAME="supra_$IP_ADDRESS"
fi