Bytes
@algorandfoundation/algorand-typescript
@algorandfoundation/algorand-typescript / index / Bytes
Function: Bytes()
Section titled “Function: Bytes()”Call Signature
Section titled “Call Signature”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
Parameters
Section titled “Parameters”replacements
Section titled “replacements”…BytesCompat[]
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Bytes(
value):bytes
Defined in: packages/algo-ts/src/primitives.ts:196
Create a byte array from a utf8 string
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Bytes(
value):bytes
Defined in: packages/algo-ts/src/primitives.ts:200
No op, returns the provided byte array.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”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
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”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
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Bytes(
value):bytes
Defined in: packages/algo-ts/src/primitives.ts:212
Create a byte array from an Iterable
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”Bytes():
bytes
Defined in: packages/algo-ts/src/primitives.ts:216
Create an empty byte array