Skip to content
SwapKit is a powerful suite of tools for building blockchain applications.

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

string

The denomination string

string

The amount in base units as a string

AssetValue

AssetValue with the correct decimal conversion