Skip to content

getABIEncodedValue

getABIEncodedValue(value, type, structs): Uint8Array

Defined in: algokit-utils-ts/src/types/app-arc56.ts:159

Returns the ABI-encoded value for the given value.

Uint8Array<ArrayBufferLike> | ABIValue | ABIStruct

The value to encode either already in encoded binary form (Uint8Array), a decoded ABI value or an ARC-56 struct

string

The ARC-56 type - either an ABI Type string or a struct name

Record<string, StructField[]>

The defined ARC-56 structs

Uint8Array

The binary ABI-encoded value