Function asset_to_asset_id

Source
pub fn asset_to_asset_id(
    asset: &Asset,
) -> Result<String, StellarTransactionUtilsError>
Expand description

Convert Asset XDR to asset identifier string

§Arguments

  • asset - The Asset to convert

§Returns

Asset identifier string (“native” for Native, or “CODE:ISSUER” for credit assets)