PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/avalanche/examples/metrics

Просмотр файла: getMetrics.ts

import { Avalanche } from "avalanche/dist"
import { MetricsAPI } from "avalanche/dist/apis/metrics"

const ip: string = "localhost"
const port: number = 9650
const protocol: string = "http"
const networkID: number = 1337
const avalanche: Avalanche = new Avalanche(ip, port, protocol, networkID)
const metrics: MetricsAPI = avalanche.Metrics()

const main = async (): Promise<any> => {
  const m: string = await metrics.getMetrics()
  console.log(m)
}

main()

Выполнить команду


Для локальной разработки. Не используйте в интернете!