Skip to content

chunkKeyValue

chunkKeyValue(key, value): string[]

Defined in: packages/store-kit/src/objects/chunk.ts:52

Splits a given value into chunks based on the size limitation of an ABI interface.

The key is used to calculate the chunk size based on the limitation of the ABI interface. The value is then split into chunks based on the calculated chunk size.

Parameters

key

string

A string representing the key whose length is used to calculate the chunk size.

value

string

The string value to be chunked.

Returns

string[]

An array of string chunks derived from the provided value.