nativeToXdrSCVal

Converts a native Kotlin value to an SCValXdr based on the type specification.

This is the core conversion method that handles all type mappings from Kotlin native types to Stellar XDR values.

Return

The converted SCValXdr

Parameters

value

The native Kotlin value to convert

typeDef

The target type specification

Throws

for invalid types or conversion failures