GET
/
v1
/
chains
import { AvaCloudSDK } from "@avalabs/avacloud-sdk";

const avaCloudSDK = new AvaCloudSDK({
  serverURL: "https://api.example.com",
  chainId: "43114",
  network: "mainnet",
});

async function run() {
  const result = await avaCloudSDK.data.evm.chains.supportedChains({
    network: "mainnet",
    feature: "nftIndexing",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "chains": [
    {
      "chainId": "<string>",
      "status": "OK",
      "chainName": "<string>",
      "description": "<string>",
      "platformChainId": "<string>",
      "subnetId": "<string>",
      "vmId": "<string>",
      "vmName": "EVM",
      "explorerUrl": "<string>",
      "rpcUrl": "<string>",
      "wsUrl": "<string>",
      "isTestnet": true,
      "utilityAddresses": {
        "multicall": "<string>"
      },
      "networkToken": {
        "name": "Wrapped AVAX",
        "symbol": "WAVAX",
        "decimals": 18,
        "logoUri": "https://images.ctfassets.net/gcj8jwzm6086/5VHupNKwnDYJvqMENeV7iJ/fdd6326b7a82c8388e4ee9d4be7062d4/avalanche-avax-logo.svg",
        "description": "<string>"
      },
      "chainLogoUri": "<string>",
      "private": true,
      "enabledFeatures": [
        "nftIndexing"
      ]
    }
  ]
}

Authorizations

x-glacier-api-key
string
header
required

Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.

Query Parameters

network
enum<string>

Either mainnet or testnet/fuji.

Available options:
mainnet,
fuji,
testnet,
devnet
feature
enum<string>

Filter by feature.

Available options:
nftIndexing,
webhooks,
teleporter

Response

200
application/json
Successful response
chains
object[]
required