createNonNativeAsset

Creates a non-native asset, automatically selecting AlphaNum4 or AlphaNum12 based on the asset code length.

Return

AssetTypeCreditAlphaNum4 or AssetTypeCreditAlphaNum12

Parameters

code

The asset code (1-12 characters)

issuer

The issuer's account ID (G... address)

Throws

if the code length is invalid or issuer is invalid