funcResToNative

fun funcResToNative(functionName: String, scVal: SCValXdr): Any?

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

functionName

The function name

scVal

The result value as SCValXdr

Throws

if contract spec not loaded

if function not found or conversion fails

Samples


fun funcResToNative(functionName: String, base64Xdr: String): Any?

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

functionName

The function name

base64Xdr

The result value as base64-encoded XDR string

Throws

if contract spec not loaded

if function not found or conversion fails

Samples