# EncodedRecipient

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / EncodedRecipient

# Interface: EncodedRecipient

A [Recipient](https://docs.midnight.network/api-reference/compact-runtime/interfaces/Recipient.md) with its fields encoded as byte strings. This representation is used internally by the contract executable.

## Properties[​](#properties "Direct link to Properties")

### is\_left[​](#is_left "Direct link to is_left")

```
readonly is_left: boolean;
```

Whether the recipient is a user or a contract.

***

### left[​](#left "Direct link to left")

```
readonly left: EncodedCoinPublicKey;
```

The recipient's public key, if the recipient is a user.

***

### right[​](#right "Direct link to right")

```
readonly right: EncodedContractAddress;
```

The recipient's contract address, if the recipient is a contract.
