---
jsApi: true
title: "[F] getEncode"

---
```ts
getEncode(program, target): EncodeData | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) |
| `target` | [`Scalar`](../interfaces/Scalar.md) \| [`ModelProperty`](../interfaces/ModelProperty.md) |

## Returns

[`EncodeData`](../interfaces/EncodeData.md) \| `undefined`
