encodeString
Encodes a Utf8 string into Cbor bytes. Strings can be split into lists with chunks of up to 64 bytes to play nice with Cardano tx metadata constraints.
export function encodeString(
str: string,
split: boolean
): number[]
Arguments
Name | Type | Description |
---|---|---|
str | string | |
split | boolean |
Return value
number[]