const HDWalletProvider = require("truffle-hdwallet-provider"); const provider = new HDWalletProvider(process.env.PRIVATE_KEY, "https://ropdten.infura.io/v3/"+process.env.PROJECT_ID); const web3_conn = new Web3(provider);
PROJECT_ID=<Infura project id> PROJECT_SECRET=<Infura project secret -- optional> PRIVATE_KEY=<Ethereum account's private key>