go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Step 2: Create the .env File
 
Subject: Step 2: Create the .env File
Author: WebSpider
In response to: Step 1: Install Packages
Posted on: 06/07/2021 07:02:17 AM

PROJECT_ID=<Infura project id>
PROJECT_SECRET=<Infura project secret -- optional>
PRIVATE_KEY=<Ethereum account's private key>



 

> On 06/07/2021 07:01:03 AM WebSpider wrote:


npm install web3 --save
npm install dotenv --save
npm install truffle-hdwallet-provider --save


The package dotenv is used for storing your credentials like API_KEY or private keys

The package truffle-hdwallet-provider is used to connect your wallet to blockchain network





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.