# Functions ## encode ▸ **encode**(input?: *`null` | `Uint8Array` | `Array`<`null` | `Uint8Array`>*): `Uint8Array` *Defined in [encode.ts:101](https://github.com/polkadot-js/common/blob/dd77c3c/packages/trie-codec/src/encode.ts#L101)* **Parameters:** | Name | Type | | ------ | ------ | | `Optional` input | `null` | `Uint8Array` | `Array`<`null` | `Uint8Array`> | **Returns:** `Uint8Array` ___