import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.evm.address.chains.list({
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
});
console.log(result);
}
run();{
"indexedChains": [
{
"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"
]
}
],
"unindexedChains": [
"<string>"
]
}Lists the chains where the specified address has participated in transactions or ERC token transfers, either as a sender or receiver. The data is refreshed every 15 minutes.
import { Avalanche } from "@avalanche-sdk/chainkit";
const avalanche = new Avalanche();
async function run() {
const result = await avalanche.data.evm.address.chains.list({
address: "0x71C7656EC7ab88b098defB751B7401B5f6d8976F",
});
console.log(result);
}
run();{
"indexedChains": [
{
"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"
]
}
],
"unindexedChains": [
"<string>"
]
}Api keys provide higher access to rate limits. To obtain an api key, sign up for an account at https://avacloud.io/.
A wallet address.
Was this page helpful?