Questions tagged [hdwalletprovider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

How to send transaction to payable contract on Binance Smart Chain without Metamask

Suppose there is a live contract (on live network, not test network) out there on Binance Smart Chain and it has a payable function that I want to use. I want to use web3 to send a transaction and ...
0
votes
1answer
87 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 ...
0
votes
0answers
16 views

Not getting any output after deploying contract in rinkeby through web3.js. But in localhost using ganache-ui getting all the outputs

this is my contract - pragma solidity ^0.5.17; contract Lottery { address public manager; address payable[] public players; constructor () public { manager = msg.sender; } function enter() ...
1
vote
1answer
45 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
180 views

Dockerized Ganache-cli + HdWallet Provider?

Does anyone have any experience connecting an instance of HdWalletProvider to a dockerized Ganache-Cli? Having trouble connecting with http://0.0.0.0:8545, or ganache-cli:8545, or anything other form ...
0
votes
0answers
44 views

Signing Ropsten transactions with

I am trying to sign transactions using the Web3 HDWalletProvider package and an infura API. I am using the following code: const Web3 = require('web3'); const Web3HDWalletProvider = require("web3-...
0
votes
1answer
411 views

hdwallet-provider set multiple account addresses when deploy contract

I'm using for deploying contracts hdwallet-provider, but I have issue on client side to get multiple accounts using web3.eth.getAccounts() call. I know this is like duplicate question and truffle ...
1
vote
2answers
378 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 ...