import { Dcomm } from "dcomm/dist"

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

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

main()
