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
Status of chain nodes. Chain nodes can become temporarily UNAVAILABLE for several reasons, such as validator stake falling below threshold. If chain nodes are UNAVAILABLE, requests that rely on data from the chain nodes may return 503 errors.
OK, UNAVAILABLE EVM, BITCOIN, ETHEREUM Show child attributes
The contract name.
The contract symbol.
The number of decimals the token uses. For example 6, means to divide the token amount by 1000000 to get its user representation.
The logo uri for the address.
nftIndexing, webhooks, teleporter Was this page helpful?