Switch Network
Last updated
Last updated
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.
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
Key | Type | Description |
---|---|---|
network.chainId
string
Chain ID
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
chainId
string
Chain ID