Canton dAppBooster
    Preparing search index...

    Return shape of useTokenList. byKey is built from tokens, so the two never disagree, and both carry the balance-first order the provider settled on.

    const { byKey, tokens } = useTokenList()
    const selected = byKey.get(tokenKey(instrumentId)) ?? tokens[0]
    interface UseTokenListResult {
        byKey: ReadonlyMap<string, Token>;
        tokens: readonly Token[];
    }
    Index
    byKey: ReadonlyMap<string, Token>
    tokens: readonly Token[]