encode

utilsDocs


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

Function: encode()

encode(s): Uint8Array

Encode the string to Uint8Array with UTF-8 encoding

Parameters

s: string

String to encode

Returns

Uint8Array

result Uint8Array

Defined in

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

Last updated