Add a Custom Network
A web application may request Adena to add a custom Gnoland network to Adena via the AddNetwork
method. Upon the user's approval, the network will be added to the list of available networks on the Change Network page in the Settings menu.
Code
Params
Key
Type
Description
network.chainId
string
Chain ID
network.rpcUrl
string
Network RPC Url
network.chainName
string
Chain Name
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
Add Network Result Model
Add Network Result Model
Key
Type
Description
chainId
string
Chain ID
rpcUrl
string
Network RPC Url
chainName
string
Chain Name
Sample Request
Sample Response
Last updated