This query loads the information about supported 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": "19d7bbee-f4ff-4786-8e03-f17ef411e6fe",
"name": "Solana Mainnet",
"chainID": 900,
"isTestnet": false,
"__typename": "Network"
},
{
"id": "51987430-77d2-4633-99c3-100cdd9952c7",
"name": "Solana Devnet",
"chainID": 901,
"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 |