Questions tagged [truffle-hdwallet-provider]

Filter by
Sorted by
Tagged with
1 vote
0 answers
61 views

Convert this connection code from Loom testnet to Goerli Testnet

This is a utils/common file for connecting to Loom testnet. const fs = require('fs') const Web3 = require('web3') const { Client, NonceTxMiddleware, SignedTxMiddleware, LocalAddress, CryptoUtils, ...
Vidhan Mangla's user avatar
1 vote
0 answers
35 views

Are there any security concers with using @truffle/hdwallet-provider?

The project I am working on asked if I would remove the usage of @truffle/hdwallet-provider from our project due to security concerns. (One of the previous team members had supposedly concluded it isn'...
Sky's user avatar
  • 2,144
1 vote
0 answers
237 views

Error in Ropsten: The network id specified in the truffle config (3) does not match the one returned by the network (1)

There are similar questions but I could not find the solution. maybe because smart contract tools are developing so fast. here is the setting for ropsten in truffle config. ropsten: { ...
Yilmaz's user avatar
  • 1,492
0 votes
1 answer
452 views

Is it possible to have several instances of Web3 object in the same dApp?

I need to access two smart contracts through two different providers in the same app, is it possible to have two instances of Web3 in the same dApp. Something like this: const web3 = new Web3(); const ...
Ehsan Khodarahmi's user avatar
1 vote
1 answer
1k views

The current provider doesn't support subscriptions: HDWalletProvider on Polygon (matic) blockchain

I use wss://rpc-mainnet.maticvigil.com/v1/MY-APP-ID as my polygon dApp provider, however I cannot subscribe on newBlockHeaders event with the following error: Error: The current provider doesn't ...
Ehsan Khodarahmi's user avatar
1 vote
1 answer
470 views

How to use truffle HDWalletProvider to get more then 10 addresses with funds for test purpose

How do I need to call HDWalletProvider to get for example 50 addresses with funds? The networks part in my truffle.js configuration file looks like this: networks: { development: { provider: ...
stefan's user avatar
  • 121
1 vote
1 answer
1k views

error: { code: -32000, message: 'invalid sender' }

I'm trying to deploy my Smart Contract onto the Rinkeby test network. Everything is working fine, my rinkeby account is also having enough ethers. And also using HDWalletProvider, I am able to access ...
Lokesh Mishra's user avatar
0 votes
2 answers
386 views

Calling web3.eth.getAccounts() does nothing - no errors

I am trying to get all accounts using [email protected] and @truffle/[email protected]. I am using HDWalletProvider with Infura. I am running this code on backend (Node.js v14.15.5). This is the code ...
Mark's user avatar
  • 133
0 votes
0 answers
577 views

How to catch bad web3 eth node endpoint

In the project I am working on (next.js + react) users will enter their own Infura endpoint to connect on-chain. Now is there a way to validate the endpoint they supplied (in this case their input is ...
Conviley's user avatar
  • 380
0 votes
0 answers
42 views

im getting an error when trying to deploy my contract in rinkeby network..?

i want to deploy my contract in rinkeby network with metamak mnemonic but iam unable to do it.icant understand whata i did wrongin the error message is there any way out...?
Adithya Adi's user avatar
4 votes
1 answer
5k views

Ethereum Error: Provider does not support subscriptions: HDWalletProvider

I am making a flash loan request using web3 , truffle and keep getting the error in an event listener: The current provider doesn't support subscriptions: HDWalletProvider. I am connecting to the ...
gbenroscience's user avatar
0 votes
1 answer
922 views

mnemonic.includes in not a function

I've been trying to compile my solidity smart contracts So I'd be able to deploy them on the Ropsten Test network when I run truffle compile I get this error : TypeError: mnemonic.includes is not a ...
Ali Alkhateeb's user avatar
1 vote
2 answers
1k views

Truffle deployment error while deploying with Infura (Error: Callback was already called)

I am trying to deploy a token smart contract to Ropsten test network with Infura, but I am always getting an error as I am using truffle migrate --reset --network ropsten_infura Compiling your ...
Franck Wei's user avatar
0 votes
0 answers
84 views

web3.eth.getAccounts() returns no output

const deploy = async () => { const accounts = await web3.eth.getAccounts(); console.log("Attempting to deploy from contract ", accounts); }; The code runs but returns nothing and even the next ...
Kareem Hisham's user avatar
0 votes
1 answer
2k views

Cannot find module '@truffle/hdwallet-provider' [duplicate]

I am trying to deploy a smart contract that works nicely in Ganache to a test net (Kovan). However, all the tutorials out there use a package called hdwallet provider. When I follow the ...
elGreato's user avatar
1 vote
1 answer
487 views

Transaction does not get mined on rinkeby

so I'm trying to deploy my first contract on rinkeby using web3 and truffle/hdwallet-provider. even with different gas prices it doesn't get mined.Please help out. const HDWalletProvider = require("@...
Ketan Verma's user avatar
1 vote
1 answer
48 views

Problem with contracts being deployed multiple times in Node.JS backend

I have a Javascript frontend that passes records in a JSON to the backend via Express to be deployed to the blockchain (currently using Rinkeby) with truffle-hdwallet-provider. This appears to work ...
Philip Rutovitz's user avatar
1 vote
0 answers
60 views

Why can I only deploy approx. 3 smart contracts per minute with infura using Ropsten and Rinkeby

I have created a Dapp that is written in Solidity and compiled with Truffle on both Rinkeby and Ropsten. I have also created a frontend for batch file uploads and a backend for the actual deploying ...
Philip Rutovitz's user avatar
0 votes
1 answer
456 views

Problem with running truffle code with node.js

I am trying to run truffle code with Node.JS in the backend to deploy contracts. I want to be able to do this interactively and I am intending to use the Express Library to interact with the Node ...
Philip Rutovitz's user avatar
3 votes
0 answers
165 views

How to use Truffle HDWallet Provider with WebSocketProvider

Truffle HDWallet Provider works well with HttpProvider, but doesn't work with WebSocketProvider.
Amr Shaker's user avatar
0 votes
1 answer
306 views

Error : migrate kovan

From : truffle migrate --network kovan >> ProviderError: VM Exception while processing transaction: revert >truffle migrate --reset --network kovan Warning: Both truffle-config.js and ...
YU Kunakorn's user avatar
0 votes
1 answer
262 views

truffle migrate --network kovan >> ProviderError: VM Exception while processing transaction: revert

I am a beginner. I can deploy to a private network but I can not deploy to a public network. I need a Deploy to the kovan test network. please help me. >truffle init >npm install truffle-...
YU Kunakorn's user avatar
0 votes
0 answers
370 views

Error: Error: ProviderError: VM Exception while processing transaction: revert

Error: Error: ProviderError: VM Exception while processing transaction: revert at Object.run (C:\Users\WINDOWS\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-migrate\...
YU Kunakorn's user avatar
1 vote
0 answers
691 views

Error while installing truffle-hdwallet-provider

I am on windows OS and my current python version is 3.6 and node version is v10.12.0 I am trying to install truffle-hdwallet-provider by running following command: npm install --save truffle-...
Fariha Abbasi's user avatar
1 vote
2 answers
697 views

Truffle Migrations run only if not dry run (different account0 in dry run)

I noticed that using HDWalletProvider using the account parameter in the migration you get random/unexpected accounts during dryRun. I added a safety line that an address should be as expected but ...
CodingYourLife's user avatar