Granite Upgrade Activates in11d:16h:53m:24s
Primary Network

Get Subnet details by ID

Get details of the Subnet registered on the network.

GET
/v1/networks/{network}/subnets/{subnetId}
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://build.avax.network/console/utilities/data-api-keys.

In: header

Path Parameters

networkstring

Either mainnet or testnet/fuji.

Value in"mainnet" | "fuji" | "testnet"
subnetIdstring

Subnet ID to fetch details for

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://data-api.avax.network/v1/networks/mainnet/subnets/11111111111111111111111111111111LpoYY"
{
  "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": {
        "airdropAmount": null,
        "airdropHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "alloc": {
          "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd": {
            "balance": "0x52b7d2dcc80cd2e4000000",
            "code": "0x6080604052...",
            "storage": {
              "0x0": "0x1"
            }
          }
        },
        "baseFeePerGas": null,
        "blobGasUsed": null,
        "coinbase": "0x0000000000000000000000000000000000000000",
        "config": {
          "berlinBlock": 0,
          "byzantiumBlock": 0,
          "chainId": 43114,
          "constantinopleBlock": 0,
          "eip150Block": 0,
          "eip150Hash": "0x2086799aeebeae135c246c65021c82b4e15a2c451340993aacfd2751886514f0",
          "eip155Block": 0,
          "eip158Block": 0,
          "feeConfig": {
            "baseFeeChangeDenominator": 36,
            "blockGasCostStep": 200000,
            "gasLimit": 12000000,
            "maxBlockGasCost": 1000000,
            "minBaseFee": 25000000000,
            "minBlockGasCost": 0,
            "targetBlockRate": 2,
            "targetGas": 60000000
          },
          "homesteadBlock": 0,
          "istanbulBlock": 0,
          "londonBlock": 0,
          "muirGlacierBlock": 0,
          "petersburgBlock": 0,
          "subnetEVMTimestamp": 0,
          "allowFeeRecipients": false,
          "warpConfig": {
            "blockTimestamp": 1690000000,
            "quorumNumerator": 67,
            "requirePrimaryNetworkSigners": true
          },
          "txAllowListConfig": {
            "blockTimestamp": 0,
            "adminAddresses": [
              "0x1234..."
            ],
            "managerAddresses": [
              "0x5678..."
            ],
            "enabledAddresses": [
              "0x9abc..."
            ]
          },
          "contractDeployerAllowListConfig": {
            "blockTimestamp": 0,
            "adminAddresses": [
              "0x1234..."
            ],
            "managerAddresses": [
              "0x5678..."
            ],
            "enabledAddresses": [
              "0x9abc..."
            ]
          },
          "contractNativeMinterConfig": {
            "blockTimestamp": 0,
            "adminAddresses": [
              "0x1234..."
            ],
            "managerAddresses": [
              "0x5678..."
            ],
            "enabledAddresses": [
              "0x9abc..."
            ]
          },
          "feeManagerConfig": {
            "blockTimestamp": 0,
            "adminAddresses": [
              "0x1234..."
            ],
            "managerAddresses": [
              "0x5678..."
            ],
            "enabledAddresses": [
              "0x9abc..."
            ]
          },
          "rewardManagerConfig": {
            "blockTimestamp": 0,
            "adminAddresses": [
              "0x1234..."
            ],
            "managerAddresses": [
              "0x5678..."
            ],
            "enabledAddresses": [
              "0x9abc..."
            ]
          }
        },
        "difficulty": "0x0",
        "excessBlobGas": null,
        "extraData": "0x",
        "gasLimit": "0xb71b00",
        "gasUsed": "0x0",
        "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x0",
        "number": "0x0",
        "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "timestamp": "0x64f0a000"
      }
    }
  ]
}
{
  "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?