Get Current Network
Retrieve the current network for a wallet:Switch Network
Switch a wallet to a different network:Common Network IDs
Here are some commonly used network chain IDs:Ethereum Networks
| Network | Chain ID |
|---|---|
| Ethereum Mainnet | 1 |
| Sepolia Testnet | 11155111 |
| Holesky Testnet | 17000 |
Layer 2 Networks
| Network | Chain ID |
|---|---|
| Polygon | 137 |
| Polygon Mumbai (Testnet) | 80001 |
| Arbitrum One | 42161 |
| Arbitrum Sepolia | 421614 |
| Optimism | 10 |
| Optimism Sepolia | 11155420 |
| Base | 8453 |
| Base Sepolia | 84532 |
Best Practices
1. Handle Network Switching Gracefully
Always handle errors and provide feedback to users:2. Verify Network After Switching
Confirm the network switch was successful:3. Support Testnet Networks
Make it easy for developers to test:Troubleshooting
Network Switch Fails
- Verify the chain ID is correct
- Check that the network is enabled in your Dynamic dashboard
- Ensure the wallet type supports the network (EVM wallets only)
Wrong Network Displayed
- Call
getNetwork()after switching to verify - Check for any pending transactions on the old network
What’s Next
- Token Balances - Check wallet balances
- Send Transactions - Send transactions on different networks
- Smart Contracts - Learn more about EVM operations