import { Ecanna } from "ecanna/dist" import { TKNVMAPI } from "ecanna/dist/apis/tknvm" const ip: string = "localhost" const port: number = 9650 const protocol: string = "http" const networkID: number = 1337 const ecanna: Ecanna = new Ecanna(ip, port, protocol, networkID) const tknchain: TKNVMAPI = ecanna.TKNChain() const main = async (): Promise => { const address: string = "TKN-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p" const balances: object[] = await tknchain.getAllBalances(address) console.log(balances) } main()