Questions tagged [ganache]

Ganache, formerly known as TestRPC, is a command line application and GUI for Ethereum blockchain development used to run local tests, execute commands, and inspect state while controlling how the chain operates.

Ganache enables developers to quickly fire up a personal Ethereum blockchain which can be used to run tests, execute commands, and inspect state while controlling how the chain operates.

The GUI can be downloaded at https://truffleframework.com/ganache and the CLI via npm install ganache-cli -g or yarn add ganche-cli -g.

For ganache-cli documentation see https://github.com/trufflesuite/ganache-cli

317 questions
0
votes
2 answers

Adding and Retrieving Data Into/From Blockchain via Web Interfaces

I am starting to learn developing web interfaces that can add and retrieve data via blockchain. The data is not in the form of cryptocurrency but rather in something like name and ID number. I have also learnt about metamask, ganache, web3,…
w17w
  • 65
  • 1
  • 1
  • 8
0
votes
1 answer

accounts[0] returns network name in string

I am running a set of smart contracts in test mode in order to perform some initial tests. However and very strangely, when running truffle migrate --network testrpc and using accounts[0] in my migration files, I get the following error: Error:…
mikegross
  • 1,674
  • 2
  • 12
  • 27
0
votes
0 answers

ValueError: {''message': 'The method eth_sendTransaction does not exist/is not available'}

I found an error: ValueError: {'code': -32601, 'message': 'The method eth_sendTransaction does not exist/is not available'} while I'm deploying a solidity smart contract in infura.io (ropsten test network). But when I tried on ganache, the…
0
votes
1 answer

How can I share my Ganache workspace with someone else?

I'm developing a dapp using Ganache/Truffle. The problem is that other elements of the team don't have acess to my ganache accounts (private and public) and vice-versa. Is there any way where we can all acess the same accounts?
0
votes
1 answer

Some transactions work and some don't. UnhandledPromiseRejectionWarning and VM Exception while processing transaction

I want to call certain Solidity's contract method through node.js and web3.js, but it doesn't work and I want to know why. I am following these two tutorials: https://cryptozombies.io/en/lesson/6/chapter/9 and…
QuantumDogg
  • 23
  • 1
  • 6
0
votes
0 answers

Cannot pass multiple arguments to contract's method in Web3

I'm using Web3 to interact with my ethereum contract. The problem is I cannot pass more than one argument when calling the method. If I pass two or more does not work even when in my contract the method defines that receive two or more args. I…
0
votes
1 answer

Web3.eth.getAccoutns() not working after Update

I'm developing an dapp using truffle/ganache/metamask/vue. Everything was going fine until I updated Google Chrome and Metamask's extension. Now I can't get the account logged in metamask anymore. I already try to call the getAccounts() with the…
0
votes
1 answer

Ethereum/Truffle/Solidity: Error: the tx doesn't have the correct nonce

When running the truffle test, the following error comes on the console. What might be the issue causing this. Error: the tx doesn't have the correct nonce. account has nonce of: 7 tx has nonce of: 6 function activateAirline(address…
Manish Bisht
  • 1
  • 1
  • 4
0
votes
1 answer

Sign with ethrereumjs-tx and send with HttpProvider gives "Exceeds block gas limit" regardless of gasLimit

I'm trying to write a server that holds private keys and signs transactions. I use ethereumjs-wallet/hdkey to generate accounts and private keys, ethereumjs-tx to sign transactions and web3js with a Httprovider to send transactions. Unfortunately,…
felix
  • 97
  • 5
0
votes
1 answer

Data is not displayed on the browser from the blockchain server on solidity

I am trying to make a voting app using Blockchain on truffle framework. The data from the network is not rendered on the webpage. Only loading is displayed but the actual content is not displayed even though I have connected by Blockchain accounts…
Animesh Timsina
  • 386
  • 2
  • 10
0
votes
1 answer

Store Ganache GUI Blockchain on Windows

Is there a way to store Ganache in memory blockchain into a folder? I saw that we have ganache-cli --db which allow us to do this, but I'm interested if I can do the same thing with Ganache GUI.
Emerson Micu
  • 450
  • 8
  • 17
0
votes
1 answer

Why I have an error with Ganache on npm start in WSL?

I'm trying to run Ganache in WSL (Ubuntu). When I clone git repository, npm install and then run npm start, I get this error which is not specified. > ganache@2.0.0-beta.1 start /mnt/c/Users/Name/Documents/ethereum_projects/Ganache/ganache >…
Banana Cake
  • 1,172
  • 1
  • 12
  • 31
0
votes
1 answer

Truffle and Ganache-cli test case fails

So I have this setup : truffle and ganache-cli I'm sending some ether to my contract, here is the related part of my contract: mapping(address => uint256) public balanceOf; function () payable public { uint amount =…
Cԃաԃ
  • 1,259
  • 1
  • 15
  • 29
0
votes
1 answer

npm global install of ganache-cli fails (because of sudo/permissions)

I have npm version 6.5.0 and node v10.10.0. There have been no previous issues with npm global installs. sudo npm install --global ganache-cli npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master…
Zack
  • 294
  • 1
  • 10
0
votes
1 answer

Getting connection error while connecting to smart contract using web3.js

I am using the guide at https://medium.com/@amkurian/interacting-with-ethereum-smart-contracts-through-web3-js-e0efad17977 to connect to a smart contract, where I want to access the get() method of the smart contract. Here is the code:
Danish
  • 69
  • 2
  • 8