Skip to content

decodeArc4

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / arc4 / decodeArc4

Function: decodeArc4()

decodeArc4<T>(bytes, prefix): T

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:569

Decode the provided bytes to a native Algorand TypeScript value

Type Parameters

T

Parameters

bytes

BytesCompat

An arc4 encoded bytes value

prefix

The prefix (if any), present in the bytes value. This prefix will be validated and removed

"log" | "none"

Returns

T