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.
Parameters
Section titled “Parameters”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
structs
Section titled “structs”Record<string, StructField[]>
The defined ARC-56 structs
Returns
Section titled “Returns”Uint8Array
The binary ABI-encoded value