Parameters
- params: {
address?: `0x${string}`;
token?: {
address: string;
chainId: number;
decimals: number;
extensions?: Record<string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string,
| undefined
| null
| string
| number
| bigint
| boolean>>>;
logoURI?: string;
name: string;
symbol: string;
};
}Optional
address?: `0x${string}`
Optional
token?: {
address: string;
chainId: number;
decimals: number;
extensions?: Record<string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string,
| undefined
| null
| string
| number
| bigint
| boolean>>>;
logoURI?: string;
name: string;
symbol: string;
}
address: string
chainId: number
decimals: number
Optional
extensions?: Record<string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string,
| undefined
| null
| string
| number
| bigint
| boolean
| Record<string,
| undefined
| null
| string
| number
| bigint
| boolean>>>
Optional
logoURI?: string
name: string
symbol: string
The ERC20 token balance, error, and loading state.
Custom hook to fetch the ERC20 token balance for a given Token address.