public Hash getStateRoot() {
    return stateRoot;
  }
Returns the state root for a state root-encoded transaction receipt

@return the state root if the transaction receipt is state root-encoded; otherwise {@code null}
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/TransactionReceipt.java