@web3-onboard/react
Version:
A collection of React hooks for integrating Web3-Onboard in to React and Next.js projects. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported w
7 lines (6 loc) • 487 B
TypeScript
import type { ConnectOptions, DisconnectOptions, WalletState } from '@web3-onboard/core';
import type { WalletInit } from '@web3-onboard/common';
export declare const useConnectWallet: () => [{
wallet: WalletState | null;
connecting: boolean;
}, (options?: ConnectOptions) => Promise<WalletState[]>, (wallet: DisconnectOptions) => Promise<WalletState[]>, (addresses?: string[]) => Promise<void>, (wallets: WalletInit[]) => void, (wallet: WalletState, address?: string) => void];