Minter Docsv3.3.0
Validators / Candidate: keys, launch, metadata
Validators

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 roleFormatRecommended custodyProtocol authority
OwnerAddressMx... (secp256k1)Hardware wallet or multisig (0x0C)EditCandidate (0x0E), EditCandidatePublicKey (0x14), EditCandidateCommission (0x1A), governance votes (0x0F, 0x20, 0x21), SetCandidateOn/Off (0x0A/0x0B)
ControlAddressMx... (secp256k1)Monitoring host keySetCandidateOn (0x0A) and SetCandidateOff (0x0B)
RewardAddressMx... (secp256k1)Treasury accounting walletReceives validator commission every 720 blocks; holds zero administrative permissions
Consensus PubKeyMp... (Ed25519)priv_validator_key.json (0600) on signerSigns 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.

  1. DeclareCandidacy (0x06) (declare_candidacy.go:184, $10 tariff): the inner address field sets OwnerAddress, whereas the outer transaction sender becomes both RewardAddress and ControlAddress. Initial stake must be BIP or a CRR reserve coin, with integer commission in 0..100.
  2. EditCandidate (0x0E) ($0.10 tariff): signed by OwnerAddress to separate RewardAddress, OwnerAddress, and ControlAddress onto distinct accounts.
  3. SetCandidateOn (0x0A) / SetCandidateOff (0x0B) ($0.10 tariff): signed by OwnerAddress or ControlAddress. While currentBlock <= JailedUntil, 0x0A fails with CandidateJailed.
  4. EditCandidateCommission (0x1A) ($10 tariff): signed by OwnerAddress. Each change is bounded to +-10 percentage points (|new - old| <= 10, otherwise CommissionDeltaTooBig), and the minimum interval between changes is 1,555,200 blocks (3 * GetUnbondPeriod, roughly 90 days at the nominal 5 s block interval).
  5. EditCandidatePublicKey (0x14) ($1,000 tariff): signed by OwnerAddress, switches the candidate to newPubKey, and adds the old pubKey to the global BlockList (PubKeyInBlockList) with no removal path. Operators can generate a fresh priv_validator_key.json on new hardware and switch over via 0x14 without 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.

typescript
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.

FieldExplorer 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 JSONUTF-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 PNGPublic 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}
typescript
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}`);
}