Skip to main content

Interface: WalletProviderState

This component is a layer of Wagmi and ConnectKit which allow to handle Metamask, WalletConnect and Coinbase without needing to set any config

Table of contents

Properties

Properties

checkIsChainCorrect

checkIsChainCorrect: () => boolean

Type declaration

▸ (): boolean

If chain is between the available networks supported

Returns

boolean

Defined in

providers/src/client.tsx:105


client

client: Client<Provider, WebSocketProvider>

All the wagmi client functionalities

See

wagmi

Defined in

providers/src/client.tsx:89


getAllAvailableChains

getAllAvailableChains: () => Chain[]

Type declaration

▸ (): Chain[]

Get all the available chains

Returns

Chain[]

Defined in

providers/src/client.tsx:99


getConnectors

getConnectors: () => Connector<any, any, any>[]

Type declaration

▸ (): Connector<any, any, any>[]

Get all the connectors available

Returns

Connector<any, any, any>[]

Defined in

providers/src/client.tsx:93


getProvider

getProvider: () => Provider

Type declaration

▸ (): Provider

Metamask provider for example web3 or ethers

Returns

Provider

Defined in

providers/src/client.tsx:91


getStatus

getStatus: () => undefined | "connecting" | "connected" | "reconnecting" | "disconnected"

Type declaration

▸ (): undefined | "connecting" | "connected" | "reconnecting" | "disconnected"

Get the status of the wallet

Returns

undefined | "connecting" | "connected" | "reconnecting" | "disconnected"

Defined in

providers/src/client.tsx:97


login

login: (connector: Connector<any, any, any>) => void

Type declaration

▸ (connector): void

Login in Provider

Parameters
NameType
connectorConnector<any, any, any>
Returns

void

Defined in

providers/src/client.tsx:103


logout

logout: () => void

Type declaration

▸ (): void

Logout from the wallet

Returns

void

Defined in

providers/src/client.tsx:95


walletAddress

walletAddress: string

The address of the wallet account

Defined in

providers/src/client.tsx:101