Skip to content

.metrics.chains () on the Metrics API not recognized in both versions 0.11.0 and 0.10.0 #55

@Oliverpt-1

Description

@Oliverpt-1

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions