func Res To Native
Convert a contract function result from XDR to native Kotlin types.
This is a power-user helper that exposes the result parsing logic. Use this when you want control over result parsing or need to parse results obtained outside of the standard invoke flow.
Return
The converted native Kotlin value, or null for void results
Parameters
The function name
The result value as SCValXdr
Throws
if contract spec not loaded
if function not found or conversion fails
Samples
Convert a contract function result from base64-encoded XDR to native Kotlin types.
This is a convenience overload that first decodes the base64 XDR string before converting to native types.
Return
The converted native Kotlin value, or null for void results
Parameters
The function name
The result value as base64-encoded XDR string
Throws
if contract spec not loaded
if function not found or conversion fails