Function useSourceAddress
- useSourceAddress(userAddress, walletClient, sourceChain, isTestnet): {
address: undefined | string;
error: undefined | AddressError;
refetch: ((cancelled?) => Promise<void>);
} Parameters
- userAddress: undefined | string
- walletClient: undefined | WalletClient
- sourceChain: undefined | {
addressPrefix: string;
chainId: string;
coinType: string;
} - isTestnet: boolean
Returns {
address: undefined | string;
error: undefined | AddressError;
refetch: ((cancelled?) => Promise<void>);
}
Readonly
address: undefined | string
Readonly
error: undefined | AddressError
Readonly
refetch: ((cancelled?) => Promise<void>)
- (cancelled?): Promise<void>
Parameters
Optional
cancelled: MutableRefObject<boolean>
Returns Promise<void>
React hook to derive the wallet address for a given chain from the same wallet's address for another chain