import { Avalanche } from "avalanche/dist" import { AVMAPI } from "avalanche/dist/apis/avm" 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 xchain: AVMAPI = avalanche.XChain() const main = async (): Promise => { const username: string = "username" const password: string = "Vz48jjHLTCcAepH95nT4B" const address: string = await xchain.createAddress(username, password) console.log(address) } main()