Questions tagged [truffle-hdwallet-provider]

Filter by
Sorted by
Tagged with
1
vote
0answers
73 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: { ...
0
votes
1answer
204 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 ...
1
vote
1answer
488 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 ...
0
votes
0answers
59 views

send tokens from one truffle HDWALLET-provider to another

I am new to the ethereum blockchain world. I use hdwallet-provider to create ERC20 addresses for users of an exchange. Each user of the exchange can make a deposit on his ERC20 address. But I also ...
1
vote
1answer
151 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: ...
1
vote
1answer
284 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 ...
0
votes
0answers
105 views

Infura authentication in truffle-config.js

I have create a project on infura.io website. I have create a new truffle project. Here is my truffle-config.js file: const path = require("path"); const HDWalletProvider = require("@...
0
votes
2answers
242 views

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

I am trying to get all accounts using web3@1.3.3 and @truffle/hdwallet-provider@1.2.2. I am using HDWalletProvider with Infura. I am running this code on backend (Node.js v14.15.5). This is the code ...
0
votes
0answers
363 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 ...
0
votes
0answers
32 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...?
3
votes
1answer
3k 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 ...
0
votes
1answer
349 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 ...
0
votes
2answers
730 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 ...
0
votes
0answers
45 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 ...
0
votes
1answer
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 ...
1
vote
1answer
336 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("@...
1
vote
1answer
39 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 ...
1
vote
0answers
52 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 ...
0
votes
1answer
346 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 ...
3
votes
0answers
85 views

How to use Truffle HDWallet Provider with WebSocketProvider

Truffle HDWallet Provider works well with HttpProvider, but doesn't work with WebSocketProvider.
0
votes
1answer
256 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 ...
0
votes
1answer
156 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-...
0
votes
0answers
246 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\...
1
vote
0answers
532 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-...
1
vote
2answers
498 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 ...