Detect a Network Change
The web application must keep track of which network Adena is connected to at all times, as Adena submits all requests to the current network. Adena provides a function to detect a change when a user tweaks the network settings in Adena.
Code
Params
Key | Type | Description |
---|---|---|
| ' | The event key of ' |
|
| The function that gets triggered by the event |
Sample Request
Networks (chainID)
ID | Network |
---|---|
| Gnoland Network (Testnet 3) |
| Gnoland Network (Testnet 2) |
| Gnoland Network (Local) |
Last updated