PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/avalanche/examples/health
Просмотр файла: health.ts
import { Avalanche } from "avalanche/dist"
import { HealthAPI } from "avalanche/dist/apis/health"
import { HealthResponse } from "avalanche/dist/apis/health/interfaces"
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 health: HealthAPI = avalanche.Health()
const main = async (): Promise<any> => {
const healthResponse: HealthResponse = await health.health()
console.log(healthResponse)
}
main()
Выполнить команду
Для локальной разработки. Не используйте в интернете!