# serializeValueWithOptions

[**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) / serializeValueWithOptions

## Function: serializeValueWithOptions()

> **serializeValueWithOptions**<`DataType`>(`value`, `__namedParameters`): `Uint8Array`

### Type Parameters

• **DataType**

### Parameters

• **value**: `DataType`

• **\_\_namedParameters**: `Pick`<[`GetOptions`](https://limechain.gitbook.io/limechain-test/types/collections/interfaces/getoptions)<`DataType`>, `"serializer"`> = `...`

### Returns

`Uint8Array`

### Defined in

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