import { Lux } from "lux/dist" import { IndexAPI } from "lux/dist/apis/index" import { GetContainerByIndexResponse } from "lux/dist/apis/index/interfaces" const ip: string = "localhost" const port: number = 9650 const protocol: string = "http" const networkID: number = 1337 const lux: Lux = new Lux(ip, port, protocol, networkID) const index: IndexAPI = lux.Index() const main = async (): Promise => { const idx: string = "0" const encoding: string = "hex" const baseurl: string = "/ext/index/X/tx" const containerByIndex: GetContainerByIndexResponse = await index.getContainerByIndex(idx, encoding, baseurl) console.log(containerByIndex) } main()