Candidate: keys, launch, metadata
Minter v3.3.0 validator operator keys (Mp, OwnerAddress, ControlAddress, RewardAddress), transactions 0x06, 0x0A, 0x0E, 0x14, 0x1A, /v2/missed_blocks monitoring, and Explorer metadata convention.
The Minter state machine separates the Ed25519 block-signing key (Mp... on the validator host) from three secp256k1 address roles (Mx...). Assigning a dedicated ControlAddress lets monitoring automation toggle candidate status without holding authority over commission rates or payout addresses.
Operator keys and address roles
| Key or role | Format | Recommended custody | Protocol authority |
|---|---|---|---|
OwnerAddress | Mx... (secp256k1) | Hardware wallet or multisig (0x0C) | EditCandidate (0x0E), EditCandidatePublicKey (0x14), EditCandidateCommission (0x1A), governance votes (0x0F, 0x20, 0x21), SetCandidateOn/Off (0x0A/0x0B) |
ControlAddress | Mx... (secp256k1) | Monitoring host key | SetCandidateOn (0x0A) and SetCandidateOff (0x0B) |
RewardAddress | Mx... (secp256k1) | Treasury accounting wallet | Receives validator commission every 720 blocks; holds zero administrative permissions |
Consensus PubKey | Mp... (Ed25519) | priv_validator_key.json (0600) on signer | Signs Proposal, Prevote, and Precommit votes in Tendermint v0.34.19 |
Registration, activation, and key rotation
Exact RLP schemas are listed in the transaction registry, while active-set caps (64 validators, top-100 candidates, registration rule at >= 192) and slashing rules live in Emission, staking, rewards and penalties.
DeclareCandidacy (0x06)(declare_candidacy.go:184,$10tariff): the inneraddressfield setsOwnerAddress, whereas the outer transactionsenderbecomes bothRewardAddressandControlAddress. Initial stake must beBIPor a CRR reserve coin, with integercommissionin0..100.EditCandidate (0x0E)($0.10tariff): signed byOwnerAddressto separateRewardAddress,OwnerAddress, andControlAddressonto distinct accounts.SetCandidateOn (0x0A)/SetCandidateOff (0x0B)($0.10tariff): signed byOwnerAddressorControlAddress. WhilecurrentBlock <= JailedUntil,0x0Afails withCandidateJailed.EditCandidateCommission (0x1A)($10tariff): signed byOwnerAddress. Each change is bounded to+-10percentage points (|new - old| <= 10, otherwiseCommissionDeltaTooBig), and the minimum interval between changes is1,555,200blocks (3 * GetUnbondPeriod, roughly90days at the nominal5 sblock interval).EditCandidatePublicKey (0x14)($1,000tariff): signed byOwnerAddress, switches the candidate tonewPubKey, and adds the oldpubKeyto the globalBlockList(PubKeyInBlockList) with no removal path. Operators can generate a freshpriv_validator_key.jsonon new hardware and switch over via0x14without copying private keys between hosts.
Monitoring missed blocks
Poll the 24-block sliding window via GET /v2/missed_blocks/{public_key}. If missed_blocks_count approaches the > 12 threshold, automation holding ControlAddress can submit SetCandidateOff (0x0B) before the 17,280-block downtime jail triggers.
import {
MinterGateClient,
buildDeclareCandidacyTx,
buildEditCandidateTx,
buildSetCandidateOnTx,
parsePip,
signTx,
} from "@minter-network/tx-core";
import type { MxAddress } from "@minter-network/tx-core";
// Supply these inputs from your application.
declare const hotSenderAddress: MxAddress;
declare const controlPrivateKey: Uint8Array;
const gate = new MinterGateClient(
process.env.MINTER_GATE_URL ?? "https://gate.minter.network/v2",
);
const pubKey = "Mpeeb140d1d932146cf394f868ac64467a2935c3f7d0ddd1517a954aa3fd2a7b04";
const ownerAddress = "Mx1111111111111111111111111111111111111111";
const rewardAddress = "Mx2222222222222222222222222222222222222222";
const controlAddress = "Mx3333333333333333333333333333333333333333";
// 1. DeclareCandidacy (0x06): inner address field assigns OwnerAddress
const declareTx = buildDeclareCandidacyTx(
{
address: ownerAddress,
pubKey,
commission: 10,
coinId: 0,
stakePip: parsePip("10000"),
},
{ nonce: await gate.getNextNonce(hotSenderAddress), chainId: 1, gasCoin: 0 },
);
// 2. EditCandidate (0x0E): signed by cold OwnerAddress
const editTx = buildEditCandidateTx(
{ pubKey, rewardAddress, ownerAddress, controlAddress },
{ nonce: await gate.getNextNonce(ownerAddress), chainId: 1, gasCoin: 0 },
);
// 3. SetCandidateOn (0x0A): signed by ControlAddress and verified in a committed block
const setOnSigned = signTx(
buildSetCandidateOnTx(
{ pubKey },
{ nonce: await gate.getNextNonce(controlAddress), chainId: 1, gasCoin: 0 },
),
controlPrivateKey,
);
await gate.sendTransaction(setOnSigned.signedRawTxHex);
const committed = await gate.waitForTransaction(setOnSigned.txHash);
if (committed.code !== "0") {
throw new Error(`SetCandidateOn failed with code ${committed.code}: ${committed.log}`);
}Candidate metadata (Explorer indexer convention)
Validator titles, websites, and icons are not stored in consensus state and are not validated by the node. Minter Explorer indexes candidate profiles through an on-chain convention: submit a 0 pip Send (0x01) transaction to Mxa62da2d2714f23738a4d1658909eb6c920669b0e carrying UTF-8 JSON (<= 10,000 bytes) in payload.
| Field | Explorer indexer rule |
|---|---|
Signer (tx.sender) | Current OwnerAddress of the candidate in node state: the address field from DeclareCandidacy (0x06) or the latest ownerAddress set via EditCandidate (0x0E). Transactions signed by ControlAddress or RewardAddress are ignored when they differ from OwnerAddress |
Recipient (data.to) | Mxa62da2d2714f23738a4d1658909eb6c920669b0e |
payload JSON | UTF-8 JSON {"PK","title","description","www","icon"}, where "PK" matches the active Mp... key (re-publish metadata for the new "PK" after rotating via 0x14) |
icon PNG | Public HTTPS URL returning a valid PNG between 33 bytes and 1 MiB (1,048,576 bytes) with \x89PNG\r\n\x1a\n and IHDR headers. Explorer fetches the file server-side, computes digest = sha256(bytes), clears raw external icon_url fields, and serves the verified PNG from /api/v2/assets/{digest}.png and /api/assets/{digest} |
import {
MinterGateClient,
SecretLeakGuard,
buildSendTx,
signTx,
} from "@minter-network/tx-core";
import type { MinterWallet } from "@minter-network/tx-core";
// Supply these inputs from your application.
declare const ownerWallet: MinterWallet;
const gate = new MinterGateClient(
process.env.MINTER_GATE_URL ?? "https://gate.minter.network/v2",
);
const METADATA_ADDRESS = "Mxa62da2d2714f23738a4d1658909eb6c920669b0e";
const payload = JSON.stringify({
PK: "Mpeeb140d1d932146cf394f868ac64467a2935c3f7d0ddd1517a954aa3fd2a7b04",
title: "Sentinel Validator",
description: "Dedicated NVMe node behind dual Sentry relays",
www: "https://validator.example.com",
icon: "https://validator.example.com/icon.png",
});
SecretLeakGuard.assertSafePublicText(payload);
const nonce = await gate.getNextNonce(ownerWallet.address);
const signed = signTx(
buildSendTx(
{ coinId: 0, to: METADATA_ADDRESS, valuePip: 0n },
{ nonce, chainId: 1, gasPrice: 1, gasCoin: 0, payload },
),
ownerWallet.privateKey,
);
await gate.sendTransaction(signed.signedRawTxHex);
const tx = await gate.waitForTransaction(signed.txHash);
if (tx.code !== "0") {
throw new Error(`Metadata transaction failed with code ${tx.code}`);
}