Primary Network
List subnets
Lists all subnets registered on the network.
x-glacier-api-key<token>
Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
In: header
Path Parameters
networkstring
Either mainnet or testnet/fuji.
Value in
"mainnet" | "fuji" | "testnet"Query Parameters
pageToken?string
A page token, received from a previous list call. Provide this to retrieve the subsequent page.
pageSize?integer
The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 10000.
Default
100Range
1 <= value <= 10000sortOrder?string
The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the sortBy query parameter, if provided.
Value in
"asc" | "desc"Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://glacier-api.avax.network/v1/networks/mainnet/subnets?pageSize=10&sortOrder=asc"{
"nextPageToken": "string",
"subnets": [
{
"createBlockTimestamp": 0,
"createBlockIndex": "string",
"subnetId": "string",
"ownerAddresses": [
"string"
],
"threshold": 0,
"locktime": 0,
"subnetOwnershipInfo": {
"locktime": 0,
"threshold": 1,
"addresses": [
"avax1qm2a25eytsrj235hxg6jc0mwk99tss64eqevsw"
]
},
"isL1": true,
"l1ConversionTransactionHash": "string",
"l1ValidatorManagerDetails": {
"blockchainId": "string",
"contractAddress": "string"
},
"blockchains": [
{
"createBlockTimestamp": 0,
"createBlockNumber": "string",
"blockchainId": "string",
"vmId": "string",
"subnetId": "string",
"blockchainName": "string",
"evmChainId": 43114,
"genesisData": "{\"chainId\": 43114}"
}
]
}
]
}{
"message": "string",
"statusCode": 400,
"error": "Bad Request"
}{
"message": "string",
"statusCode": 401,
"error": "Unauthorized"
}{
"message": "string",
"statusCode": 403,
"error": "Forbidden"
}{
"message": "string",
"statusCode": 404,
"error": "Not Found"
}{
"message": "string",
"statusCode": 429,
"error": "Too Many Requests"
}{
"message": "string",
"statusCode": 500,
"error": "Internal Server Error"
}{
"message": "string",
"statusCode": 502,
"error": "Bad Gateway"
}{
"message": "string",
"statusCode": 503,
"error": "Service Unavailable"
}Is this guide helpful?