useWalletConnector()
function useWalletConnector(wallets?): [AsyncValue<true, MutationError>, (...args) => Promise];
Defined in: packages/react/src/hooks/use-wallet-connector.ts:16
Hook for connecting wallets
Parameters
| Parameter | Type | Description |
|---|---|---|
wallets? | | Wallet<WalletOptions, string> | Wallet<WalletOptions, string>[] | Wallets to connect to, will connect to all available wallets if none is specified |
Returns
[AsyncValue<true, MutationError>, (...args) => Promise]
The wallet connection state & connect function