UseConnectResult
Defined in: packages/react/src/hooks/useConnect.ts:20
Properties
Section titled “Properties”connect()
Section titled “connect()”connect: () =>
void
Defined in: packages/react/src/hooks/useConnect.ts:22
Connect to the wallet
Returns
Section titled “Returns”void
connectAsync()
Section titled “connectAsync()”connectAsync: () =>
Promise<{isConnected:boolean;isNetworkConnected:boolean;networkReason?:string;reason?:string;userUrl?:string; }>
Defined in: packages/react/src/hooks/useConnect.ts:24
Connect async with promise return
Returns
Section titled “Returns”Promise<{ isConnected: boolean; isNetworkConnected: boolean; networkReason?: string; reason?: string; userUrl?: string; }>
error:
ParsedError|null
Defined in: packages/react/src/hooks/useConnect.ts:30
Error from the last connect attempt
isError
Section titled “isError”isError:
boolean
Defined in: packages/react/src/hooks/useConnect.ts:28
Whether the last connect attempt failed
isPending
Section titled “isPending”isPending:
boolean
Defined in: packages/react/src/hooks/useConnect.ts:26
Whether a connection is in progress
reset()
Section titled “reset()”reset: () =>
void
Defined in: packages/react/src/hooks/useConnect.ts:32
Reset the mutation state
Returns
Section titled “Returns”void