Companion

object Companion

Functions

Link copied to clipboard
fun create(canonicalForm: String): Asset

Parses an asset string and returns the equivalent Asset instance.

fun create(type: String?, code: String?, issuer: String?): Asset

Creates an asset from individual components.

Link copied to clipboard

Creates a native asset (Lumens/XLM).

Link copied to clipboard

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

Link copied to clipboard

Decodes an Asset from its XDR representation.