funcArgsToXdrSCValues

fun funcArgsToXdrSCValues(functionName: String, args: Map<String, Any?>): List<SCValXdr>

Converts function arguments to XDR SCVal objects based on the function specification.

This is the primary method that dramatically simplifies contract interaction by automatically converting native Kotlin types to XDR based on the contract spec.

Return

List of SCVal objects in the correct order for the function

Parameters

functionName

The function name

args

Map of argument names to values

Throws

if the function is not found or required arguments are missing