Javascript
import { AvaCloudSDK } from "@avalabs/avacloud-sdk"; const avaCloudSDK = new AvaCloudSDK({ serverURL: "https://api.example.com", chainId: "43114", }); async function run() { const result = await avaCloudSDK.metrics.chains.get({}); console.log(result); } run();
{ "evmChainId": 43114, "chainName": "c_chain", "blockchainId": "2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5", "subnetId": "11111111111111111111111111111111LpoYY", "network": "mainnet" }
Get chain information for Metrics API supported blockchain.
A supported evm chain id. Use the /chains endpoint to get a list of supported chain ids.
/chains
Successful response
The response is of type object.
object
Was this page helpful?