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

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

## Parameters

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

## Returns

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