Skip to content

Bytes

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / Bytes

Bytes(value, …replacements): bytes

Defined in: packages/algo-ts/src/primitives.ts:192

Create a byte array from a string interpolation template and compatible replacements

TemplateStringsArray

BytesCompat[]

bytes

Bytes(value): bytes

Defined in: packages/algo-ts/src/primitives.ts:196

Create a byte array from a utf8 string

string

bytes

Bytes(value): bytes

Defined in: packages/algo-ts/src/primitives.ts:200

No op, returns the provided byte array.

bytes

bytes

Bytes(value): bytes

Defined in: packages/algo-ts/src/primitives.ts:204

Create a byte array from a biguint value encoded as a variable length big-endian number

biguint

bytes

Bytes(value): bytes

Defined in: packages/algo-ts/src/primitives.ts:208

Create a byte array from a uint64 value encoded as a fixed length 64-bit number

uint64

bytes

Bytes(value): bytes

Defined in: packages/algo-ts/src/primitives.ts:212

Create a byte array from an Iterable where each item is interpreted as a single byte and must be between 0 and 255 inclusively

Iterable<uint64>

bytes

Bytes(): bytes

Defined in: packages/algo-ts/src/primitives.ts:216

Create an empty byte array

bytes