> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

# ContractCompanion.WithKey.NewContract

> Generated object reference page for ContractCompanion.WithKey.NewContract from local Javadoc snapshots.

## ContractCompanion.WithKey.NewContract - stable

Upstream docs: [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ContractCompanion.WithKey.NewContract.html)

**Signature**

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
@FunctionalInterface public static interface ContractCompanion.WithKey.NewContract<Ct,Id,Data,Key>
```

**Members**

| Docs                                                                                                                                                                                                                 | Member                                                           | Introduced | Deprecated | Removed |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------- | ---------- | ------- |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ContractCompanion.WithKey.NewContract.html#newContract%28Id,Data,java.util.Optional,java.util.Set,java.util.Set%29) | `newContract(Id, Data, Optional<Key>, Set<String>, Set<String>)` | `3.4.8`    | -          | -       |
