PHP WebShell

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

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

import { Avalanche } from "avalanche/dist"

const ip: string = "localhost"
const port: number = 9650
const protocol: string = "http"
const networkID: number = 1337
const baseEndpoint: string = "rpc"
const avalanche: Avalanche = new Avalanche(ip, port, protocol, networkID)
avalanche.setAddress(ip, port, protocol, baseEndpoint)

const main = async (): Promise<any> => {
  const baseEndpoint: string = avalanche.getBaseEndpoint()
  console.log(baseEndpoint)
}

main()

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


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