getContractId

suspend fun getContractId(network: Network): String

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

For native assets (XLM), returns the native contract ID. For issued assets, derives the contract ID from the asset and network.

This contract ID can be used to interact with the Stellar Asset Contract (SAC) for this asset using Soroban smart contracts.

Return

The contract address (C...) for this asset's contract

Parameters

network

The network to get the contract ID for

See also