public long headBlockNumber() {
    return blockchain.getChainHeadBlockNumber();
  }
Return the block number of the head of the chain.

@return The block number of the head of the chain.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/query/BlockchainQueries.java