UNPKG

@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

13 lines (12 loc) 404 B
import type { ConnectedChain } from '@web3-onboard/core'; import type { Chain } from '@web3-onboard/common'; type SetChainOptions = { chainId: string; chainNamespace?: string; }; export declare const useSetChain: (walletLabel?: string) => [{ chains: Chain[]; connectedChain: ConnectedChain | null; settingChain: boolean; }, (options: SetChainOptions) => Promise<boolean>]; export {};