npm install dotenv --save
npm install --save web3
npm install --save ethers
npm install moralis react-moralis (https://docs.moralis.io/moralis-dapp/connect-the-sdk/connect-with-react)
npm install @walletconnect/web3-provider
#Always remember - web3
-
call enable web3 code in page laod where you need to have execute web3 code, in useEffect
-
Always verify, user must have selected required chain Like 0x4 for testnet or development phase 0x1 for mainnet, production phase
above is based on required blockchain Mainnet (Production) --- Testnet (Development) ....... ........... Ethereum (0x1) --- Rinkeby (0x4) Polygon (0x137 / 0x89) --- Mumbainet (0x80001 / 0x13881) Binance (0x38) --- Testnet (0x61) Avalanche (0xa86a) --- Testnet (0xa869)