> ## 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.

# ByKey.ToInterface

> Parent of all generated ByKey classes within interfaces. These need to pass both the template and interface ID.

## ByKey.ToInterface - stable

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

**Signature**

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
public abstract static class ByKey.ToInterface extends ByKey
```

**Members**

| Docs                                                                                                                                                                                                                               | Member                                           | Introduced | Deprecated | Removed |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ---------- | ---------- | ------- |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ByKey.ToInterface.html#%3Cinit%3E%28com.daml.ledger.javaapi.data.codegen.ContractCompanion,com.daml.ledger.javaapi.data.Value%29) | `ToInterface(ContractCompanion<?, ?, ?>, Value)` | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ByKey.ToInterface.html#makeExerciseCmd%28com.daml.ledger.javaapi.data.codegen.Choice,A%29)                                        | `makeExerciseCmd(Choice<?, ? super A, R>, A)`    | `3.4.8`    | -          | -       |
