Switch Network
A web application may request Adena to switch the current network settings to a new one via the SwitchNetwork
method. Upon the user's approval, Adena will switch the network to the one requested by the app.
Code
Params
Key
Type
Description
network.chainId
string
Chain ID
Response
Key
Type
Description
code
number
Code (success: 0)
status
string
Returns success
or failure
type
string
Response type
message
string
Descriptive message of the result
data
object
Switch Network Result Model
Switch Network Result Model
Key
Type
Description
chainId
string
Chain ID
Sample Request
Sample Response
Last updated