bytes

utilsDocs


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