• Takes a coins list like "819966000ucosm,700000000ustake" and parses it.

    Starting with CosmJS 0.32.3, the following imports are all synonym and support a variety of denom types such as IBC denoms or tokenfactory. If you need to restrict the denom to something very minimal, this needs to be implemented separately in the caller.

    import { parseCoins } from "@cosmjs/proto-signing";
    // equals
    import { parseCoins } from "@cosmjs/stargate";
    // equals
    import { parseCoins } from "@cosmjs/amino";

    This function is not made for supporting decimal amounts and does not support parsing gas prices.

    Parameters

    • input: string

    Returns Coin[]

Generated using TypeDoc