require('dotenv').config(); import {Reflaunt} from "../lib/core/Reflaunt"; (async () => { const instance = await new Reflaunt({ mnemonic: process.env.ROPSTEN_MNEMONIC, nodeUrl: process.env.ROPSTEN_NODE_URL, wsUrl: process.env.ROPSTEN_WS_URL }).loginAs(0); const res = await instance.createProduct(0, Math.round(Date.now()%10000000)); console.log(res); })();