useWalletConnector()
function useWalletConnector(wallets?): object;
Defined in: composables/use-wallet-connector.ts:12
Composable 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
object
The wallet connection state & connect function
data
data: Ref<undefined | void>;
error
error: Ref<unknown>;
execute()
execute: (...args) => Promise;
Parameters
Parameter | Type |
---|---|
...args | [ | Wallet <WalletOptions , string > | Wallet <WalletOptions , string >[]] |
Returns
Promise
status
status: Ref<"idle" | "pending" | "success" | "error">;