@xylabs/sdk-react
    Preparing search index...

    Variable useConnectWalletConst

    useConnectWallet: (
        ethWalletConnector?: EthWalletConnectorBase,
    ) =>
        | {
            connectError: Error
            | undefined;
            connectRefused: boolean;
            connectWallet: () => Promise<string[] | undefined>;
        }
        | {
            connectError?: undefined;
            connectRefused?: undefined;
            connectWallet?: undefined;
        }

    Initiate a connection to the passed in wallet

    Type Declaration

      • (
            ethWalletConnector?: EthWalletConnectorBase,
        ):
            | {
                connectError: Error
                | undefined;
                connectRefused: boolean;
                connectWallet: () => Promise<string[] | undefined>;
            }
            | {
                connectError?: undefined;
                connectRefused?: undefined;
                connectWallet?: undefined;
            }
      • Parameters

        Returns
            | {
                connectError: Error
                | undefined;
                connectRefused: boolean;
                connectWallet: () => Promise<string[] | undefined>;
            }
            | {
                connectError?: undefined;
                connectRefused?: undefined;
                connectWallet?: undefined;
            }