@cfxdevkit/defi-react / TokenWithBalance
Interface: TokenWithBalance
Defined in: usePoolTokens.ts:34
Properties
address
address:
string
Defined in: usePoolTokens.ts:35
balanceFormatted
balanceFormatted:
string
Defined in: usePoolTokens.ts:50
Human-readable balance, e.g. ‘123.45’
balanceWei
balanceWei:
string
Defined in: usePoolTokens.ts:48
Raw wei balance as string, ‘0’ if no wallet connected
decimals
decimals:
number|null
Defined in: usePoolTokens.ts:44
Token decimals — null when GeckoTerminal did not publish them.
Consumers that need an accurate value for parseUnits / formatUnits
should fall back to an on-chain decimals() read when this is null.
Display-only callers can safely fall back to 18.
logoURI?
optionallogoURI:string
Defined in: usePoolTokens.ts:46
Token logo image URL (from GeckoTerminal), if available
name
name:
string
Defined in: usePoolTokens.ts:37
symbol
symbol:
string
Defined in: usePoolTokens.ts:36