public Optional<Address> getMiningBeneficiary() {
    try {
      return JsonUtil.getString(forkConfigRoot, MINING_BENEFICIARY_KEY)
          .map(String::trim)
          .filter(s -> !s.isEmpty())
          .map(Address::fromHexStringStrict);
    } catch (final IllegalArgumentException e) {
      throw new IllegalArgumentException(
          "Mining beneficiary in transition config is not a valid ethereum address", e);
    }
  }
Gets mining beneficiary.

@return the mining beneficiary
config/src/main/java/org/hyperledger/besu/config/BftFork.java