Skip to main content
Switch between blockchain networks and query the current network.

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

Layer 2 Networks

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

Last modified on February 3, 2026