Wafer Connect

https://github.com/saklani/wafer-connect

Stores

Exposes svelte stores that can keep track of values that change.

  import { account, network } from "wafer-connect/stores";

Connect a Wallet

Account

address

Address or undefined

The address of the connected account

undefined

isConnected

Boolean

Returns true if account isConnected

false

isConnecting

Boolean

Returns true if account isConnecting

false

isDisconnected

Boolean

Returns true if account isDisconnected

true

isReconnecting

Boolean

Returns true if account isReconnecting

false

status

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

Returns current status of the account

disconnected

Network

chain

Chain & unsupported?: boolean or undefined

Current connected chain

undefined

chains

Chain[]

List of supported chains

[]