- useChainAccount(userAddress, walletClient, chain, isTestnet?): {
account: undefined | Account;
error: any;
isLoading: boolean;
isValidating: boolean;
refetch: KeyedMutator<Account>;
} Parameters
- userAddress: undefined | string
- walletClient: undefined | WalletClient
- chain: undefined | {
addressPrefix: string;
chainId: string;
} Optional
isTestnet: boolean
Returns {
account: undefined | Account;
error: any;
isLoading: boolean;
isValidating: boolean;
refetch: KeyedMutator<Account>;
}
account: undefined | Account
error: any
isLoading: boolean
isValidating: boolean
refetch: KeyedMutator<Account>
React hook to get the wallet account for a given chain from the same wallet's address for any chain