This query loads the information about Network.
General Pattern
query GetSupportedNetworks($orgId: UUID1!, $includeTestnets: Boolean!) {
getSupportedNetworks(orgId: $orgId, includeTestnets: $includeTestnets) {
id
name
chainID
isTestnet
__typename
}
}
Sample Query
{
"orgId": "d4191c0a-8020-4a6a-bdb9-461d92b8c2de",
"includeTestnets": true
}
Sample Response
{
"data": {
"getSupportedNetworks": [
{
"id": "c53715d0-7b59-44a8-8400-f9f668b5061d",
"name": "Ethereum Mainnet",
"chainID": 1,
"isTestnet": false,
"__typename": "Network"
},
{
"id": "789f6e1a-f524-40b2-912b-6213533d18cf",
"name": "Polygon Mainnet",
"chainID": 137,
"isTestnet": false,
"__typename": "Network"
},
{
"id": "9ca86d5b-60a5-416f-ac37-7b209653dbed",
"name": "Sepolia Testnet",
"chainID": 11155111,
"isTestnet": true,
"__typename": "Network"
}
]
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
orgId | UUID1 | This is a unique client ID for the project you are working on with Mojito. Please obtain this from the Mojito Support Team. Note that it is different for development and production environments. | Yes |
includeTestnets | Boolean | This flag determines whether to pull the eligible testnet networks for your organization or not. | Yes |