@Override
  public boolean isContractCreation() {
    return getTo().isEmpty();
  }
Returns the size in bytes of the encoded transaction.

@return the size in bytes of the encoded transaction.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/core/Transaction.java