public Long getGasUsed() {
    return header.getGasUsed();
  }
Returns the gas used by the current block.

@return the gas used by the block
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/BlockAdapterBase.java