useWalletConnector
Callable
Parameters
optionalwallets: any
Wallets to connect to, will connect to all available wallets if none is specified
Returns { data: Ref<void, void>; error: Ref<unknown, unknown>; execute: (...args: [wallets?: any]) => Promise<void> | Subscription; status: Ref<error | success | idle | pending, error | success | idle | pending> }
The wallet connection state & connect function
data: Ref<void, void>
error: Ref<unknown, unknown>
execute: (...args: [wallets?: any]) => Promise<void> | Subscription
Parameters
rest...args: [wallets?: any]
Returns Promise<void> | Subscription
status: Ref<error | success | idle | pending, error | success | idle | pending>
Composable for connecting wallets