Parameters tokens : { address : string ; chainId : number ; decimals : number ; extensions ?: Record < string , | string | number | bigint | boolean | Record < string , | string | number | bigint | boolean | Record < string , string | number | bigint | boolean | null | undefined > | null | undefined , > | null | undefined , > ; logoURI ?: string ; name : string ; symbol : string ; } [] rawBalances : Record < number , Record < string , bigint > > __namedParameters : { sortByBalance ?: boolean } = {} Returns { tokens : { address : string ; chainId : number ; decimals : number ; extensions ?: Record < string , | string | number | bigint | boolean | Record < string , | string | number | bigint | boolean | Record < string , string | number | bigint | boolean | null | undefined > | null | undefined , > | null | undefined , > ; logoURI ?: string ; name : string ; symbol : string ; } [] ; tokensByChainId : Record < number , { address : string ; chainId : number ; decimals : number ; extensions ?: Record < string , | string | number | bigint | boolean | Record < string , | string | number | bigint | boolean | Record < string , (...) | (...) | (...) | (...) | (...) | (...) | (...)> | null | undefined , > | null | undefined , > ; logoURI ?: string ; name : string ; symbol : string ; } [] , > ; } Updated tokens and tokens grouped by chain ID.
Defined in hooks/useTokens.ts:320
Updates tokens with raw on-chain balances (no price data), sorting tokens with a positive balance before zero-balance tokens. Within each group, source order is preserved. Used as a fallback for chains not covered by LI.FI.