You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Controller supports programmatic chain switching for external wallets through the `externalSwitchChain` method. This allows applications to request connected external wallets to switch to different blockchain networks seamlessly.
Copy file name to clipboardExpand all lines: src/pages/controller/signer-management.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,38 @@ When connecting to your Controller:
127
127
- Select any of your registered signers to authenticate
128
128
- Your account and assets remain the same regardless of which signer you use
129
129
130
+
### Chain Switching for External Wallets
131
+
132
+
External wallets (MetaMask, Rabby, WalletConnect) support programmatic chain switching through the Controller interface. This allows applications to request that connected external wallets switch to a specific blockchain network.
133
+
134
+
**Supported Functionality:**
135
+
-**Automatic Chain Switching**: Applications can programmatically request external wallets to switch chains
136
+
-**Cross-Chain Compatibility**: Works with Ethereum, Starknet, and other supported networks
137
+
-**Seamless Integration**: No additional user interaction required beyond the wallet's own confirmation
138
+
139
+
**How It Works:**
140
+
1. Your application calls the chain switch method through the Controller
141
+
2. The request is forwarded to the connected external wallet
142
+
3. The wallet handles the chain switching process (may show user confirmation)
143
+
4. The application receives confirmation of the successful chain switch
144
+
145
+
**Example Usage:**
146
+
```typescript
147
+
// Switch connected external wallet to a different chain
0 commit comments