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

> Parent of all generated ByKey classes within templates and interfaces.

## ByKey - stable

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

**Signature**

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
public abstract class ByKey extends Object implements Exercises<ExerciseByKeyCommand>
```

**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.html#%3Cinit%3E%28com.daml.ledger.javaapi.data.Value%29)                 | `ByKey(Value)`                                | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ByKey.html#contractKey)                                                        | `contractKey`                                 | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ByKey.html#getCompanion%28%29)                                                 | `getCompanion()`                              | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ByKey.html#makeExerciseCmd%28com.daml.ledger.javaapi.data.codegen.Choice,A%29) | `makeExerciseCmd(Choice<?, ? super A, R>, A)` | `3.4.8`    | -          | -       |
| [Open](https://javadoc.io/doc/com.daml/bindings-java/3.4.11/com/daml/ledger/javaapi/data/codegen/ByKey.html#toPrefetchKey%28%29)                                                | `toPrefetchKey()`                             | `3.4.8`    | -          | -       |
