Detect a Network Change
Last updated
Last updated
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.
Key | Type | Description |
---|---|---|
ID | Network |
---|---|
key
'changedNetwork'
The event key of 'changedNetwork'
function
(network: string) => void
The function that gets triggered by the event
test3
Gnoland Network (Testnet 3)
test2
Gnoland Network (Testnet 2)
dev
Gnoland Network (Local)