This script helps you verify whether your Sidechain Public Key is registered on the Midnight Testnet for Validator.
Tested on:
Midnight Sidechain Node - Testnet - Version: 0.12.0-cab67f3b
The script performs the following steps:
-
✅ Current Epoch Check
Verifies if your Sidechain Public Key is registered in the current epoch. -
🕒 Future Epoch Check
If not registered, it checks two epochs ahead to see if your validator is scheduled to be active soon. -
❌ No Registration Found
If your key is not found in either check, it means registration has not gone through.
-
📋 Validator Details (If Registered)
If registered, it will print detailed validator metadata.
Use curl to download the script directly:
curl -O "https://raw.githubusercontent.com/Midnight-Scripts/Check_Registration/refs/heads/main/check_registration.sh?token=GHSAT0AAAAAAC6QXCRDSGHHEBXFFQVX2B622BXVN6Q"Make it executable:
chmod +x check_registration.shRun the script:
./check_registration.shAlternatively, you can clone the repo:
git clone https://github.com/Midnight-Scripts/Check_Registration.git
cd Check_Registration
chmod +x check_registration.sh
./check_registration.shMake sure you have partner-chains-public-keys.json in the same directory as the script.
Your directory should look like this:
.
├── check_registration.sh
└── partner-chains-public-keys.json
The JSON file should contain your public keys in the following format:
{
"sidechain_pub_key": "0x...",
"aura_pub_key": "0x...",
"grandpa_pub_key": "0x..."
}- The script requires
jqandcurlto be installed. - Make sure your node or environment can access:
https://rpc.testnet-02.midnight.network - Useful for confirming validator setup prior to an epoch.
Enjoy seamless validation checks!