Skip to content

replace

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / op / replace

Function: replace()

replace(a, b, c): bytes

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

Copy of A with the bytes starting at B replaced by the bytes of C. Fails if B+len(C) exceeds len(A) replace3 can be called using replace with no immediates.

Parameters

a

bytes

b

uint64

c

bytes

Returns

bytes

See

Native TEAL opcode: replace3 Min AVM version: 7