Managing Besu QBFT validators with contract validator selection

Contract validator selection moves the validator list out of block header votes and into an on-chain contract. This page covers what that changes, how to set it up at genesis or on a live network, and what to confirm first.

On this page

When contract validator selection fits a Besu QBFT network

Contract validator selection stores the validator list in a smart contract on the chain, so membership changes are made by calling contract functions in transactions instead of by validators voting in block headers. Teams choose it when a permissioned network's validator set must change under governance rules that are easier to express as contract logic, such as an approval threshold, a named administrator role or a published onboarding process. With header voting, each validator proposes additions or removals through the vote field of the blocks it produces, and the change lands only after enough existing validators agree. With contract selection, the rules sit in code that every node reads, and the chain records who called which function and when. The Besu docs describe this as a QBFT configuration option, not a separate consensus algorithm, so the network still runs QBFT and only the source of the validator list changes.

Before you choose this path, confirm the governance model in writing. Ask who may call the add and remove functions, whether the contract has an administrator key, multisig or on-chain approval process, and how a stalled or compromised administrator would be replaced. Confirm that every organization in the consortium accepts the same contract as the source of truth, because a disagreement about the contract address or its code will split nodes onto different validator sets. Also check that your team can read and audit the contract and its owner functions before go-live, since those functions decide who can take part in consensus. Contract selection moves the control point from the block header vote to the contract's access rules, so those rules deserve the same review you would give any production admin interface.

Also decide whether your network can tolerate the operational differences. Validator changes depend on transactions being mined, so a change needs a funded, reachable account and working block production before it can take effect. Recovery procedures also differ: if the validator contract cannot be read or its owner is unavailable, the standard vote-based process does not apply, and you need a documented fallback. Ask your Besu engineers to confirm which of these steps apply to your Besu release, and read the Besu QBFT documentation for the current configuration keys before you write the genesis file.

Validator selection options and when each fits

This table compares block header voting, contract validator selection set at genesis, and contract selection introduced by transition on a live network. Read each row to match the option to your change control model, and to see what the Besu QBFT docs require before you commit.

OptionOperational fitWho controls changesWhat the Besu QBFT docs require
Block header votingValidator set changes are proposed and confirmed through votes carried in block headers, with no contract to deploy or auditValidators vote through the JSON-RPC voting methods, so the consortium must agree on each addition or removalVoting methods add or remove validators through the RPC; this approach is the one that no longer applies once a contract manages the set
Contract validator selection set at genesisSuits a new private network that expects validator membership to be governed by on-chain logic from the first blockWhoever can send transactions to the validator contract's functions controls the set, so access to that account needs to be governedInitial validators are listed in the genesis alloc storage section, and validatorcontractaddress must match the alloc address
Contract validator selection introduced by transitionSuits an existing QBFT network that moves from header voting to contract management without rebuilding the chainValidator changes move from RPC voting to contract function calls made by transactions, so change approval shifts to whoever controls those transactionsThe validator contract is deployed by transaction on the existing network, and its address is used in a transition
JSON-RPC voting after contract selectionDoes not apply: voting methods cannot add or remove validators while a smart contract manages themChanges must go through the contract, so vote-based procedures need to be rewritten as transactionsContract functions are called by transactions, not by JSON-RPC voting methods
Choosing a path for a live networkRequires a planned stop, genesis update and restart sequence before the transition takes effectOperators agree the transition plan and who signs the contract transactions before the change windowConfirm the exact transition steps and timing against the current Besu QBFT documentation and release notes for your version

How to set up contract validators at genesis

This sequence builds a new QBFT genesis file that takes its initial validator set from a smart contract, so the network starts with validators that the contract already lists. Each step ends with a check, so the team knows the chain is ready before the first node starts.

  1. Choose the validator contract and its address

    Decide which validator selection contract the network will use and fix its address before any node is built. Your team, with the contract source it intends to deploy, records the exact address that will appear in the genesis file. Keep the contract code, compiler settings and constructor inputs in version control so the same bytecode can be reviewed later. The step is done when the address and the contract artifact are written into the build record and approved by the people who will sign off on the network.

  2. Add the initial validators to the alloc storage

    Write the initial validator addresses into the storage section of the contract's entry in the genesis alloc. Your engineers set the storage slots so the contract reports the same validator list the network should start with, using the layout of the contract you chose. Confirm the slot layout against the contract source rather than copying values from another network. The step is done when a read of the validator list from the contract's storage returns exactly the approved addresses, in the approved order.

  3. Set validatorcontractaddress to match the alloc entry

    In the QBFT consensus section of the genesis file, set validatorcontractaddress to the same address used as the key in the alloc section. The two values must match exactly, including letter case and the 0x prefix, or nodes will not read validators from the contract you prepared. Your team reviews the genesis diff so no other consensus field changed by accident. The step is done when a parser check on the genesis file confirms that the consensus address and the alloc key are identical.

  4. Verify the contract state before the first start

    Before any validator starts, run a local check that the genesis alloc produces the expected contract state. Your engineers can load the genesis into a throwaway Besu node in an isolated environment and query the validator list through the contract's read function, comparing the result to the approved set. Confirm the validator count and the addresses, and confirm that the node reports the contract as the validator source. The step is done when the query output matches the approved list in a written record.

  5. Confirm every node uses the same genesis file

    Distribute the final genesis file to every validator and non-validator node, then compare cryptographic hashes of each copy against the hash in the build record. Any difference, including whitespace, field order or a changed storage value, can cause nodes to build different chains. Check the file's location and permissions on each host, and confirm that no node is still using an earlier draft. The step is done when every node reports the same file hash and the record shows who checked each host.

  6. Record the genesis and start the validators

    Store the approved genesis file, its hash, the contract address and the validator list in your change management system before starting any node. Start the validators in a controlled order and watch the logs for a clean startup that reads the validator set from the contract. Confirm that the first blocks are produced and that the peers agree on the same chain head. The step is done when the network is producing blocks, all validators appear in the signer set, and the record is signed off by the owners of the network.

Deploying the validator contract on an existing QBFT network

On a live network, the validator contract is not placed in genesis. Instead, it is deployed by transaction to the chain, and its address is then named in a transition that switches selection from block header votes to the contract. Because the contract is an ordinary deployment, it must be signed by an externally owned account that the operators have agreed to use for this purpose. Treat that account as a governance decision: agree in writing who holds its key, who may submit the deployment, and where the signed bytecode and constructor arguments are archived. Confirm the exact contract artifact and initial validator list against the Besu QBFT documentation for your Besu version before any operator signs, since the contract must be the one the client expects to call.

Coordination matters more here than the transaction itself. Every validator operator needs the same contract address and the same transition block before the switch takes effect, so agree on a single source of truth, such as a signed change record, and have each operator independently confirm the address against the chain. The transition is written into each node's configuration, which means a node that misses it will disagree with the rest of the network. The stop, genesis update and restart steps belong to the sibling topic on switching selection modes, so follow that sequence rather than improvising one here.

After the switch, verify on every node rather than on one node alone. Confirm that each validator reports the same validator set at the agreed block, that blocks continue to be produced and that the chain height advances on all nodes, and that logs show no invalid block header errors. Check that the deployed contract returns the expected validator list through a read call, not only through the transaction receipt. Record the results in the change record. If a node disagrees, stop and investigate before further changes, because the recovery procedures for a stalled network are not a substitute for a clean transition.

Why JSON-RPC voting no longer changes the validator set

Once a smart contract holds the validator list, the voting methods that worked on header-based networks stop changing membership. The cards below cover what that means for the chain's configuration, the change procedure, and the people and tools allowed to act on the set.

Voting methods cannot change membership

With contract validator selection, JSON-RPC voting methods cannot add or remove validators, because the set is read from contract state and header votes have no effect on it. Any vote submitted through the node API is a dead end for membership changes, even if the call returns a response. Check whether existing scripts, monitoring jobs and operator notes still reference those methods, and retire them before the transition. The node API cannot change membership on these networks.

Membership changes are contract transactions

Adding or removing a validator means sending a transaction that calls a function on the validator contract, and the chain records it like any other transaction. Your runbook should name the functions in the contract interface you deployed, the account that signs each call, and the confirmation the team waits for before declaring the change complete. Confirm exact function names and access rules from the contract source and your own tests, not from a previous network.

Genesis storage must match the contract address

Initial validators are configured in the genesis alloc storage section, and validatorcontractaddress must match the address used in that alloc entry. A mismatch is a configuration error, so compare both values during genesis review and on every node's loaded configuration. Keep genesis files under version control so a later edit cannot drift from the deployed contract address.

Besu QBFT docs

Existing networks deploy by transaction

On a network that already runs, the validator contract is deployed by transaction and its address is then used in a transition. The change is therefore an on-chain deployment followed by a coordinated configuration change. Plan the sequence with the other operators: who deploys, who verifies the bytecode and address, when the transition takes effect, and how nodes that miss the change are handled. Do not treat the deployment alone as the switch.

Runbooks and automation need rewriting

Automation built for header voting usually includes scripts that submit votes, dashboards that count pending proposals and alerts that expect votes to settle. Those items stop meaning anything after the switch. Inventory each script and alert, replace it with a job that reads the contract's validator list and submits contract transactions, and test it on a non-production network before the cutover.

Operator access becomes contract control

Whoever can send authorized transactions to the validator contract controls the validator set, so access control moves from the voting process to the contract's admin account. Define who holds that signing key, how it is stored, and how a second person approves a change. Besu documentation notes that the local node private key file is not encrypted, so confirm how that file and any contract admin keys are protected with your security team.

Besu node keys docs

How a validator change moves through the contract

The change starts with an authorized operator sending a transaction to the validator contract, which records the new validator set in its own state. Besu reads that state when it builds blocks, so the change takes effect only after the network moves through a QBFT transition on a stopped and restarted set of nodes. Check that the contract address in the transition matches the address in the genesis alloc section, and confirm the new set in block production before you treat the change as complete.

Operator transaction updates contract state, which validators read after the transition.

Securing the validator contract and operator keys

With contract validator selection, the validator list lives in a contract that anyone with the right permissions can change through transactions, and each validator node signs blocks with a private key. The cards below cover who can call the contract, how control is assigned, how node keys are protected and how changes are recorded.

Who can call the contract

Validator changes are made by sending transactions to the validator contract, so the accounts allowed to call its add and remove functions define who can change the set. JSON-RPC voting no longer applies, which means your existing voting procedures do not restrict access. Check the contract's access logic against your change approval process and confirm which accounts hold that authority before go-live.

Besu QBFT docs

Setting the owner or governance authority

Decide who owns the validator contract and holds any governance role before deployment, because that account controls the validator set. Record the authority in your design documents and confirm how it is assigned in the contract you deploy. Consider whether a single account or a multi-party arrangement fits your consortium, and confirm with the contract's authors how ownership can be transferred if a key is lost.

Protecting validator node keys

The local node private key file is not encrypted by default, so anyone who can read the file on a validator host can impersonate that validator. Restrict file permissions, limit host access, and keep backups of the key in a controlled location. Where hardware-backed storage is required, the security module option with a plugin such as the Besu HSM plugin is documented as an alternative.

Using a security module plugin

A security module plugin, such as the Besu HSM plugin enabled with the --security-module option, keeps signing keys in hardware instead of a plain file. Confirm the plugin supports your HSM model, your key type and your failover approach before adopting it. Test validator signing and restart behavior in a non-production network first, since a misconfigured module can stop a validator from producing blocks.

Auditing contract transactions

Because every validator change is a transaction, the on-chain record shows who called the contract and when. Pair this with node logs and your own change tickets so each validator addition or removal can be traced to an approved request. Confirm with your logging team how Besu logs and chain history will be retained and reviewed in your environment.

Limiting access to JSON-RPC

Validator contract calls are submitted over JSON-RPC, so the endpoint used to send those transactions needs its own controls. Besu supports username and password credential files or externally issued JWTs for JSON-RPC authentication, and it does not terminate HTTPS natively. Plan a TLS-terminating proxy and confirm which hosts are allowed to reach the API.

Authenticate JSON-RPC docs

Operating and monitoring a contract-managed validator set

Platform engineers keep the validators producing blocks and notice problems before quorum is at risk. Besu exposes metrics for Prometheus when the node starts with --metrics-enabled, and the default endpoint listens on port 9545. Those metrics are the starting point for node dashboards, and the documented sample Grafana dashboard gives a baseline view that the team can adapt. Because the validator set now lives in a contract, the monitoring plan should also cover the contract's state, which no node metric reports directly.

  • Enable metrics on every validator: Set --metrics-enabled on each validator and confirm that port 9545 is reachable only from the monitoring network.
  • Scrape with Prometheus: Add the validator endpoints to Prometheus. Where nodes sit behind firewalls, check whether a push gateway fits the network design.
  • Start from the sample Grafana dashboard: Use the documented dashboard as a baseline, then add panels for peer count, block height spread across validators and restarts.
  • Alert on validator divergence: Alert when one validator falls behind the others in block height, since a lagging validator loses signing capacity before it is visible as a failure.
  • Track contract reads: Schedule a job that reads the validator list from the contract and compares it with the expected set, so an unexpected change is caught even without a monitoring tool for the chain.

Confirm with your team which alert thresholds fit your validator count and block time before you rely on them in production.

Limits to confirm before you choose contract selection

Contract validator selection changes how your network manages its validator set, and it also ties your validator contract to the Besu release, JDK and database format you run. The cards below list the items to confirm in your own environment before you commit to this approach, so the choice does not become a problem at your next upgrade or incident.

Besu release you run

Besu uses calendar version numbers and ships roughly monthly, so the release you start on will not stay current for long. Confirm which release your validators run, which releases your change window allows, and how often your organization can test a new one. Check the release notes for each version before you move, especially for removed features that could affect your network. Record the exact version in your runbook so the contract and client pairing is known during recovery.

Besu releases

JDK 25 requirement

The Besu 26.6.0 release notes state that Besu requires JDK 25 to build and run. Confirm that your base images, hardened hosts and build pipelines can supply this JDK version. Check whether your security team has approved it and whether your patch process covers it. A JDK change can be a separate change request from the Besu upgrade itself, so plan both together.

Contract compatibility across upgrades

The validator contract is deployed by transaction on your network and then referenced by its address in genesis or a transition. Confirm with the current QBFT documentation that the contract behavior you rely on is supported in the Besu release you plan to run after your next upgrade. Test the contract against a staging network running the target release before you change production. Ask your vendor or maintainers how contract interface changes will be communicated to operators.

QBFT docs

Backup before database upgrades

The Besu 26.10.0 release notes state that the Bonsai database upgrades automatically on first start, and older Besu versions cannot open an upgraded database. A rollback after an upgrade therefore depends on a backup taken before the upgrade. Confirm how you snapshot node data, how long a restore takes on your storage, and whether you have tested a restore on each validator. Treat this as a gate for every release change that touches validator nodes.

No native HTTPS on JSON-RPC

Besu documents that it does not terminate HTTPS natively, so the JSON-RPC endpoints used to query the validator contract and submit transactions need a reverse proxy or other TLS layer in front. Confirm which component terminates TLS, how certificates are issued and rotated, and which JSON-RPC methods are exposed beyond the internal network. Authentication options include a username and password file or JWTs validated against a public key, and you should confirm which one fits your access model.

Authenticate JSON-RPC

Exact contract behavior in current docs

The QBFT documentation states that initial validators are set in the genesis alloc storage section, that validatorcontractaddress must match the alloc address, and that JSON-RPC voting methods cannot change validators when a contract manages them. Confirm these exact steps against the current QBFT docs for your release before you write runbooks, because configuration details can change between versions. Have a second engineer check the genesis and transition files against the docs before any production change.

QBFT configuration docs

Questions buyers ask about contract validator selection

Can our in-house team set up contract validator selection without a partner?

Yes, many teams can, provided they have engineers comfortable with Besu node operations, Solidity contract deployment and coordinated restarts across every organization in the network. The hard part is rarely a single command. It is agreeing the genesis change, the transition block and the rollback plan with every validator operator at the same time. Ask whether your team has run a QBFT transition before, whether it has a test network that mirrors your production genesis, and who signs off the change. If any of those answers is no, a fixed-scope engagement can cover the planning and rehearsal while your team keeps ownership of the nodes.

What drives the effort of moving to contract validator selection?

The main drivers are the number of validators, the number of organizations that operate them, the governance rules for approving a change, and the state of the existing network. A network with a small validator set run by one operator is far simpler than a consortium where each member must test, approve and restart its nodes. Existing network state matters too: a live chain with long history, several node types and custom genesis settings needs more checks than a recently launched test network. Ask for a written list of nodes, operators, approval steps and the rollback path before agreeing scope.

What does each consortium member need to provide?

Each member needs to name the operator responsible for its validator nodes, provide the node addresses and keys it will use, and confirm that its node can be stopped, updated and restarted in the agreed window. Members also need to approve the new genesis storage content and the validator contract address, and to keep a backup of node data before the change. Members that run their own key management should confirm how signing keys are stored, since the Besu documentation notes that the local node private key file is not encrypted unless a security module is used.

How long does a transition window take to confirm?

The duration is not fixed by Besu. It depends on how many nodes must restart, how quickly each operator can respond, and how much testing the network requires before the change goes live. Confirm the window in writing with each member, and ask how the team will check that every validator has switched and that blocks are being produced under the new configuration. Plan for time to verify the change on a test network first, since a mismatched genesis between nodes can stop a chain from progressing.

Does contract validator selection still allow JSON-RPC voting to add validators?

No. When a smart contract manages the validator set, the JSON-RPC voting methods cannot add or remove validators. Changes are made by sending transactions that call the contract's functions, so the approval process moves from node-side votes to contract access control. Teams should decide in advance who holds the authority to call those functions and how that access is audited, because the contract becomes the single source for validator membership.

What does a fixed-scope engagement cover for this change?

A fixed-scope engagement is agreed in writing before work starts and sets the deliverables and timeline. For this topic, that can include reviewing the current genesis and validator setup, preparing the genesis storage section, deploying the validator contract on the existing network, planning the transition with each operator, and supporting verification after the change. DeployOpen does not publish a price list, so ask for a quote based on the written scope, and confirm whether ongoing support or monitoring is included or sold as a retainer.

Which Besu version should we run before making the change?

Choose a Besu release that your team can support and test against your current chain, and confirm it with the release notes before the change. Besu ships calendar releases roughly monthly, and the GitHub releases page lists the current versions. Note that Besu requires JDK 25 to build and run according to the 26.6.0 release notes, and that the Bonsai database auto-upgrades on first start, so a backup is needed before any upgrade. Check the Besu QBFT documentation for the settings that match your version.

How DeployOpen scopes contract validator work

DeployOpen plans, implements and documents self-hosted Hyperledger Besu networks inside your own infrastructure, including the cloud accounts, data centers or air-gapped networks where the nodes run. Contract validator work is scoped as a fixed-scope engagement: the genesis storage setup or the live transition onto a validator contract, the contract deployment, the node and key handling, the verification steps and the handover documents are agreed in writing before work starts. A quote follows from that written scope, so the scope document is the thing to review with your architecture, security and operations leads.

A useful written scope for this topic names the Besu version and JDK in use, the consensus configuration (for example, whether validatorcontractaddress is set in genesis or introduced by a transition on an existing network), the validator count and which organizations operate each validator, and the change window for any stop, genesis update and restart. It should also state who owns the validator contract, who holds the keys that can call its functions, and what evidence is delivered at the end. Confirm each of these with your own team first, because they decide how much work is planned and how much is left for your staff to run afterward.

DeployOpen is not a vendor partner, reseller or certified provider of Hyperledger Besu, and it does not hold any Besu certification. Ask any provider, including DeployOpen, to show the project documentation they rely on, such as the Besu docs for QBFT, and to explain which steps they will perform on your nodes versus which steps your staff must repeat. Ongoing support, upgrades and continuous testing are available as retainers and are scoped separately from the initial change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.