@xylabs/sdk-react
Preparing search index...
useConnectWallet
Variable useConnectWallet
Const
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
Optional
ethWalletConnector
:
EthWalletConnectorBase
Returns
|
{
connectError
:
Error
|
undefined
;
connectRefused
:
boolean
;
connectWallet
:
()
=>
Promise
<
string
[]
|
undefined
>
;
}
|
{
connectError
?:
undefined
;
connectRefused
?:
undefined
;
connectWallet
?:
undefined
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@xylabs/sdk-react
Loading...
Initiate a connection to the passed in wallet