Categories
Cryptocurrency Ethereum Mastering Development

I am getting Error: Project ID is required deploying to ropsten in truffle

I am getting the following error: Error: PollingBlockTracker – encountered an error while attempting to update latest block: Error: project ID is required at C:\Users\myuser\Code Projects\sdfsd\node_modules@trufflesuite\web3-provider-engine\subproviders\provider.js:18:36 ropsten: { provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/myropstenidhere"), network_id: 3, gas: 4000000 }, live: { provider: () => new HDWalletProvider(mnemonic,’https://mainnet.infura.io’), network_id: ‘*’, gasPrice: 25000000000, gas: 5000000, confirmations: 2 }

Categories
Cryptocurrency Development Ethereum

Ganache become disconnected after some hours

I am running my program to deploy thousand of contracts and millions of transaction to interact with them, which definitely need a lot of hours. But, when i let my program running during night (without using my laptop at all), then Ganache GUI become disconnected after some hours, which cause my program to stop. and […]

Categories
Cryptocurrency Development Ethereum

Ganache become disconnected after some hours

I am running my program to deploy thousand of contracts and millions of transaction to interact with them, which definitely need a lot of hours. But, when i let my program running during night (without using my laptop at all), then Ganache GUI become disconnected after some hours, which cause my program to stop. and […]

Categories
Cryptocurrency Development Ethereum

Ganache become disconnected after some hours

I am running my program to deploy thousand of contracts and millions of transaction to interact with them, which definitely need a lot of hours. But, when i let my program running during night (without using my laptop at all), then Ganache GUI become disconnected after some hours, which cause my program to stop. and […]

Categories
Cryptocurrency Development Ethereum

the tx doesn’t have the correct nonce. account has nonce of: 12 tx has nonce of: 3 – Ganache

I am trying to run my simple contract with different parameters (in the form of encoded signatures) and intends to put multiple transaction into ONE block. If I set Ganache GUI with automine option, it works perfectly but with one transaction in ONE block. However, if I set timedelay (i.e. say 2/3 sec) to enable […]

Categories
Cryptocurrency Development Ethereum

UnhandledPromiseRejectionWarning: Error: Returned error: nonce too low

I am trying to deploy some contracts on Ropsten network. Here is my code async function finalDeploy(r){ for(i=0; i<constructorParams.length; i++) { const options = { data: ‘0x’ + myBin[r]+constructorParams[i], gas: 5000000, }; const signed = await web3.eth.accounts.signTransaction(options, privateKey1); const receipt = await web3.eth.sendSignedTransaction(signed.rawTransaction); // here error occured console.log(“Contract: ” +r+” is deployed at ” +receipt.contractAddress); […]