Change Trust Asset
Represents an asset in a change trust operation on the Stellar network.
This class can represent both regular assets (native, credit_alphanum4, credit_alphanum12) and liquidity pool shares for change trustline operations.
Usage
For Regular Assets
val asset = AssetTypeCreditAlphaNum4("USD", issuer)
val changeTrustAsset = ChangeTrustAsset(asset)Content copied to clipboard
For Liquidity Pool Shares
val assetA = AssetTypeCreditAlphaNum4("USD", issuer)
val assetB = AssetTypeCreditAlphaNum4("EUR", issuer)
val pool = LiquidityPool(assetA, assetB)
val changeTrustAsset = ChangeTrustAsset(pool)Content copied to clipboard