For the complete documentation index, see llms.txt. This page is also available as Markdown.

bytes

utils • Docs


near-sdk-js v2.0.0 / utils / bytes

Function: bytes()

bytes(s): Uint8Array

Convert a string to Uint8Array, each character must have a char code between 0-255.

Parameters

• s: string

string that with only Latin1 character to convert

Returns

Uint8Array

result Uint8Array

Defined in

packages/near-sdk-js/src/utils.ts:326

Last updated