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.
byKey
tokens
const { byKey, tokens } = useTokenList()const selected = byKey.get(tokenKey(instrumentId)) ?? tokens[0] Copy
const { byKey, tokens } = useTokenList()const selected = byKey.get(tokenKey(instrumentId)) ?? tokens[0]
Return shape of useTokenList.
byKeyis built fromtokens, so the two never disagree, and both carry the balance-first order the provider settled on.Example