AssetTypeNative

data object AssetTypeNative : Asset

Represents the native asset of the Stellar network (Lumens/XLM).

This is a singleton object representing XLM, the native cryptocurrency of Stellar. Unlike issued assets, the native asset doesn't have a code or issuer.

Usage

val xlm = AssetTypeNative
println(xlm) // "native"

See also

Properties

Link copied to clipboard
open override val type: AssetTypeXdr

Returns the asset type.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Asset): Int
Link copied to clipboard
suspend fun getContractId(network: Network): String

Returns the contract ID for this asset on the given network.

Link copied to clipboard
open override fun toString(): String

Returns a canonical string representation of this asset.

Link copied to clipboard
open override fun toXdr(): AssetXdr

Converts this asset to its XDR representation.