When to use:
- Showing player’s token balances in-game
- Central hub for accessing funding options
- Post-login wallet dashboard
Installation
- npm
- yarn
Quick Start
Parameters
| Parameter | Type | Description |
|---|---|---|
flow | 'WALLET' | Required. Specifies the wallet flow |
showDisconnectButton | boolean | Show disconnect option (default: true) |
showNetworkMenu | boolean | Show network switcher (default: true) |
Events
| Event | Description | Payload |
|---|---|---|
CLOSE | User closed widget | — |
DISCONNECTED | User disconnected wallet | — |
USER_ACTION | User initiated a sub-flow | { action } |
User Actions
The wallet can trigger other flows. Listen for these actions:SWAP, BRIDGE, ONRAMP.
What Users See
The wallet flow displays:- Connected wallet address with copy button
- Token balances on Immutable Chain
- Action buttons for:
- Swap tokens
- Bridge from Ethereum
- Buy with fiat (onramp)
- Network selector (if enabled)
- Disconnect button (if enabled)