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
- checkIsChainCorrect
- client
- getAllAvailableChains
- getConnectors
- getProvider
- getStatus
- login
- logout
- walletAddress
Properties
checkIsChainCorrect
• checkIsChainCorrect: () => boolean
Type declaration
▸ (): boolean
If chain is between the available networks supported
Returns
boolean
Defined in
client
• client: Client
<Provider
, WebSocketProvider
>
All the wagmi client functionalities
See
Defined in
getAllAvailableChains
• getAllAvailableChains: () => Chain
[]
Type declaration
▸ (): Chain
[]
Get all the available chains
Returns
Chain
[]
Defined in
getConnectors
• getConnectors: () => Connector
<any
, any
, any
>[]
Type declaration
▸ (): Connector
<any
, any
, any
>[]
Get all the connectors available
Returns
Connector
<any
, any
, any
>[]
Defined in
getProvider
• getProvider: () => Provider
Type declaration
▸ (): Provider
Metamask provider for example web3 or ethers
Returns
Provider
Defined in
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
login
• login: (connector
: Connector
<any
, any
, any
>) => void
Type declaration
▸ (connector
): void
Login in Provider
Parameters
Name | Type |
---|---|
connector | Connector <any , any , any > |
Returns
void
Defined in
logout
• logout: () => void
Type declaration
▸ (): void
Logout from the wallet
Returns
void
Defined in
walletAddress
• walletAddress: string
The address of the wallet account