# serialize

[**utils**](https://limechain.gitbook.io/limechain-test/utils) • **Docs**

***

[near-sdk-js v2.0.0](https://limechain.gitbook.io/limechain-test/packages) / [utils](https://limechain.gitbook.io/limechain-test/utils) / serialize

## Function: serialize()

> **serialize**(`valueToSerialize`): `Uint8Array`

### Parameters

• **valueToSerialize**: `unknown`

### Returns

`Uint8Array`

### Defined in

[packages/near-sdk-js/src/utils.ts:159](https://github.com/dim-daskalov/near-sdk-js/blob/c95f5e9eab115df82feb9d8dca403e7b9c8c9534/packages/near-sdk-js/src/utils.ts#L159)
