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
key
'changedNetwork'
The event key of 'changedNetwork'
function
(network: string) => void
The function that gets triggered by the event
Sample Request
Networks (chainID)
ID
Network
test3
Gnoland Network (Testnet 3)
test2
Gnoland Network (Testnet 2)
dev
Gnoland Network (Local)
Last updated