Skip to content

substring

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / op / substring

Function: substring()

substring(a, b, c): bytes

Defined in: packages/algo-ts/src/op.ts:3439

A range of bytes from A starting at B up to but not including C. If C < B, or either is larger than the array length, the program fails

Parameters

a

bytes

b

uint64

c

uint64

Returns

bytes

See

Native TEAL opcode: substring3 Min AVM version: 2