Function getTokenData

  • Retrieves token data including balance and denom information.

    Parameters

    • token: Amount

      The token amount and denom (Amount).

    • denoms: Record<string, DenomData>

      A record of denom data indexed by denom strings.

    Returns Promise<undefined | TokenBalanceData>

    A Promise resolving to the token balance data (TokenBalanceData) or undefined if not found.