import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.evm.chains.list({
network: "mainnet",
feature: "nftIndexing",
});
console.log(result);
}
run();{
"chains": [
{
"chainId": "<string>",
"status": "OK",
"chainName": "<string>",
"description": "<string>",
"vmName": "EVM",
"rpcUrl": "<string>",
"isTestnet": true,
"networkToken": {
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"logoUri": "<string>",
"description": "<string>"
},
"platformChainId": "<string>",
"subnetId": "<string>",
"vmId": "<string>",
"explorerUrl": "<string>",
"wsUrl": "<string>",
"utilityAddresses": {
"multicall": "<string>"
},
"chainLogoUri": "<string>",
"private": true,
"enabledFeatures": [
"nftIndexing"
]
}
]
}Lists the AvaCloud supported EVM-compatible chains. Filterable by network.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.evm.chains.list({
network: "mainnet",
feature: "nftIndexing",
});
console.log(result);
}
run();{
"chains": [
{
"chainId": "<string>",
"status": "OK",
"chainName": "<string>",
"description": "<string>",
"vmName": "EVM",
"rpcUrl": "<string>",
"isTestnet": true,
"networkToken": {
"name": "<string>",
"symbol": "<string>",
"decimals": 123,
"logoUri": "<string>",
"description": "<string>"
},
"platformChainId": "<string>",
"subnetId": "<string>",
"vmId": "<string>",
"explorerUrl": "<string>",
"wsUrl": "<string>",
"utilityAddresses": {
"multicall": "<string>"
},
"chainLogoUri": "<string>",
"private": true,
"enabledFeatures": [
"nftIndexing"
]
}
]
}Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
Either mainnet or testnet/fuji.
mainnet, fuji, testnet Filter by feature.
nftIndexing, webhooks, teleporter Successful response
Show child attributes
Was this page helpful?