Hey! Recently while at Avalanche Summit Hackathon in London I was unable to use the metrics API due to sdk.metrics.chains not being recognized or showing the getTeleporterMetrics API endpoint that I was trying to get to. Despite changing versions and trying 0.10.0, it still wasn't working. Here is the code snippet below showing what was giving me errors:
const _sdk = new AvaCloudSDK({
serverURL: String(serverURL),
chainId: chainId,
network: "mainnet"
});
console.log("ChainId and metric,", chainId, metric);
const result = await _sdk.metrics.chains.getTeleporterMetrics({
metric: metric,
chainId: chainId
});
return res.status(200).json(result);
Hey! Recently while at Avalanche Summit Hackathon in London I was unable to use the metrics API due to sdk.metrics.chains not being recognized or showing the getTeleporterMetrics API endpoint that I was trying to get to. Despite changing versions and trying 0.10.0, it still wasn't working. Here is the code snippet below showing what was giving me errors: