getAssetFromDenom
getAssetFromDenom(
denom
,amount
):AssetValue
Defined in: packages/toolboxes/src/cosmos/util.ts:238
Converts a Cosmos denom and amount to an AssetValue with proper decimal handling
Parameters
Section titled “Parameters”string
The denomination string
amount
Section titled “amount”string
The amount in base units as a string
Returns
Section titled “Returns”AssetValue
AssetValue with the correct decimal conversion