PHP WebShell

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

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

import { Avalanche } from "avalanche/dist"
import { KeystoreAPI } from "avalanche/dist/apis/keystore"

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 keystore: KeystoreAPI = avalanche.NodeKeys()

const main = async (): Promise<any> => {
  const users: string[] = await keystore.listUsers()
  console.log(users)
}

main()

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


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