Skip to main content

useWalletConnector()

function useWalletConnector(wallets?): object;

Defined in: composables/use-wallet-connector.ts:12

Composable for connecting wallets

Parameters

ParameterTypeDescription
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

ParameterType
...args[ | Wallet<WalletOptions, string> | Wallet<WalletOptions, string>[]]

Returns

Promise

status

status: Ref<"idle" | "pending" | "success" | "error">;