Questions tagged [ganache]

For questions about using the Ganache personal blockchain testing environment.

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

Truffle Test: Setting blockTime

I'm using Truffle and I want to increase the blocktime to mimic that of the mainnet when i run my tests. As i understand it, Truffle has already instantiated a web3 instance that's ready to use so i ...
2
votes
1answer
12 views

How to connect local ganache node with epirus

I tried apirus to connect to local ganache node. Ganache node is running on localhost:7545. git clone https://github.com/blk-io/epirus-free.git cd epirus-free docker-compose pull NODE_ENDPOINT=http:/...
1
vote
1answer
15 views

Is it fine to use Ganache in a staging environment?

We are currently using Rinkeby in our staging environment, but planning to stop using it cause it doesn't make sense as our application will communicate with a private Ethereum network when it goes to ...
1
vote
0answers
12 views

How to deploy blockchain app in heroku

I want to deploy my blockchain app in heroku and i just want to use ganache as my blockchain network. is that possible?
0
votes
0answers
20 views

Is it possible to use ganache blockchain when I deploy my web app in heroku? or should I deploy the contract first to a test network?

const web3 = new Web3( new Web3.providers.HttpProvider( "https://kovan.infura.io/v3/INFURA_KEY" ) ); const abi = JSON.parse( '[ { "constant": false, "inputs": [ { "internalType": "string", "...
1
vote
1answer
20 views

Testing solidity transfer method not transferring tokens

I have this solidity contract: contract Token { mapping(address => uint256) public balanceOf; event Transfer( address indexed _from, address indexed _to, uint256 _value ); ...
1
vote
2answers
28 views

Accessing database in solidity

I am developing a voting application using blockchain (ganache). So basically i am registering the candidates by a web form and storing the data in phpmyadmin database. Now i want to access this data ...
0
votes
0answers
34 views

Web3j and Ganache stack underflow error

I'm experiencing the error "Error processing transaction request: VM Exception while processing transaction: stack underflow" basically with any contract. I'm using Ganache v2.1.2 and Web3j 4.5.15. ...
0
votes
0answers
22 views

Truffle revert when deploying contract

solidity newbie here working on moving from remix to truffle suite. I have a contract that worked fine on remix but is raising the following error message when attempting to deploy to local test chain ...
2
votes
1answer
24 views

Signing transactions with Ledger Nano S on Ganache with Metamask

I am trying to sign transactions and move funds on a private Ethereum Blockchain with my Ledger Nano S on MetaMask. So far I have tried to do so in Ganache and via blockchain setup via custom RPC. ...
1
vote
2answers
34 views

Can the mapping storage change after contract deployment?

I am beginner in mapping.I work on Truffle and Ganache. I deploy the following contract: pragma solidity ^0.5.12; contract customerFinder{ mapping(uint256 => address payable) public ...
0
votes
1answer
30 views

Importing OpenZeppelin loads all node_modules contracts into Ganache

I install OpenZeppelin's contracts npm install @openzeppelin/contracts Create a contract: pragma solidity ^0.5.0; import "@openzeppelin/contracts/token/ERC20/ERC20Mintable.sol"; contract NewCoin ...
1
vote
0answers
22 views

Does ganache only store the most recent transaction's events?

I can log them to the console in each transaction with subscribe, but the ganache UI only ever shows the latest one, as does web3.eth.getPastLogs.
1
vote
1answer
33 views

ganache-cli 127.0.0.1:8080 bad request

Alright, it looks like everything in the terminals is running well. The contract looks to be deployed successfully. It seems like there's supposed to be an API or something I can access via looking up ...
0
votes
1answer
13 views

How of should I migrate my Smart Contract?

I am developing a scraper which scrapes data and puts it on ethereum blockchain(ganache for dev) every week. So as to put this data onto the blockchain should I migrate my smart contract each time I ...
1
vote
1answer
16 views

Is gas used during truffle tests on ganache the same as main net?

I am testing the amount of gas used for my contract functions using Truffle and Ganache CLI. Does anyone know if I can assume that the gas usage reported during my tests will be an accurate ...
1
vote
1answer
53 views

Ganache: out-of-gas during deployment

I have a bunch of contracts which deploy just fine. Deployment of one of the contracts, XBRNetwork takes exactly 5418911 gas - no problems with that. However, once I add another trivial (public) ...
-2
votes
2answers
55 views

Can I make a proper website by using ganache and truffle? Like maybe abc.com?

I have developed a voting system usinh dapp that runs on local host. It uses accounts from ganache and metamask for transactions of votes. Now if i want to buy a domain and make the thing work, is it ...
0
votes
0answers
35 views

Web3.py Could not transact with/call contract function, is contract deployed correctly and chain synced?

I am trying to call a contract function deployed in Ganache. I am pretty sure the contract is deployed because I can transact() and work with other functions. But when I call() it, I get this error: ...
1
vote
1answer
25 views

How to send transaction using web3 contract instance from address which is not a node's account

I succeeded creating transaction from node's account(created by ganache) to a contract using web3.js . const contract = new web3.eth.Contract(abi, contractAddress, { from: from, gasPrice: ...
0
votes
1answer
52 views

Creating workspace kind in ganache-cli

I am presently developing a Dapp and I am now trying to deploy it on cloud. So what I do is create an EC2 instance and drop all my code there. Then I install ganache-cli there and before on my local ...
0
votes
1answer
43 views

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 (...
1
vote
2answers
75 views

Ganache Processing becomes very slow (with Automining Option) after consecutive thousands transactions

I am trying to deploy thousands of contracts on Ganache GUI. At first, it process all transactions very fast (deploy contracts and transactions for calling setters functions) . After some transactions,...
2
votes
1answer
72 views

Does ganache-cli support istanbul hardfork?

I am trying to run ganache-cli with istanbul --hardfork, but I am having following error: Error: Hardfork istanbul not set as supported in supportedHardforks $ ganache-cli --version Ganache CLI v6.4....
0
votes
0answers
71 views

Error: Returned values aren't valid, did it run Out of Gas? during deployment of huge number of contracts

I am trying to deploy very large number of contracts (more than 300 thousands) with automine option at Ganache GUI .. Is it possible to do such experiments ? when i want to deploy such huge number of ...
0
votes
1answer
121 views

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, ...
1
vote
2answers
87 views

How to insert multiple transactions into One Block in Ganache GUI

Is it possible to enable Ganache GUI to put multiple transactions into ONE block ?. The details about Why i need this thing, is given below; I am going to test Transaction Order Dependence (TOD) ...
1
vote
1answer
38 views

I got this error during truffle testing. AssertionError: it returns true: expected { Object (tx, receipt, …) } to equal true

DappToken.sol function transfer(address _to, uint256 _value) public returns (bool success){ require(balanceOf[msg.sender] >= _value); balanceOf[msg.sender] -= _value; balanceOf[...
0
votes
0answers
26 views

No response from live networks except ganache when interacting with truffle-contract

I am developing a Web3 app for a private Ethereum network. Throughout the development I used ganache-cli and now I wanted to test in the private live network. I can successfully interact with the ...
1
vote
1answer
61 views

web3py error while interacting with smart contract 'message': 'execution error: revert', 'code': -32000

When I try to interact with the contract with web3.py, I am using ganache, I get the completely useless error message: ValueError: {'message': 'execution error: revert', 'code': -32000, ... , '...
1
vote
0answers
32 views

An error occurred while running C:\Users\path marketplace1\marketplace1\truffle-config.js! Did you forget to `npm install` your project?

I am getting this error when I try to add the truffle-config file to my project in ganache. What to do?
1
vote
0answers
39 views

How to interact with smart contracts on Ganache from Express app

How can I interact with the smart contract on ganache from my express app using Web3.js Any Tutorials?
0
votes
2answers
21 views

Function does not return value on ropsten [duplicate]

This code returns the address perfectly when i run it on ganache local chain but when i run this on ropsten it just returns a "-" Any idea on what the problem is? function newMatch(uint _matchId,...
0
votes
1answer
19 views

Could not deploy contract through sendTransaction

I am trying to deploy contract (available at Etherscan.io ). I proceed following steps: copy its contract creation code and save them in crCode variable. Then i tried to to run following code; async ...
0
votes
1answer
147 views

Ganache VM Exception while processing transaction: out of gas

I am deploying my contract using web3 by taking values (just copy paste) from Etherscan (i.e. abi, contract creation code, etc.) and then deploy my contract on Ganache (gui). When i run the my code ...
3
votes
1answer
50 views

Difference between Puppeth and Ganache

I am trying to set up a local blockchain and started to read about Puppeth to manage the blockchain and also read about Ganache (this one I already tested a bunch of stuff), but never heard about a ...
0
votes
1answer
39 views

Ganache is not updating my contract status

I am using ganche for local ethereum. I have successfully deployed my contract through web3js on ganache. (The same contract also tested on Remix, all function properly running as per logic). Now i ...
0
votes
0answers
19 views

Fixed time between blocks like Ganache

I am trying to establish an Ethereum network and study its TxPool. I tried Ganache, but it looks like it doesn't support TxPool yet, but I found the fixed time between blocks and no difficulty (...
1
vote
1answer
30 views

TxPool on Ganache

I started using Ganache to run Ethereum and tried via cURL the following: curl -X POST -d '{"jsonrpc":"2.0","method":"txpool_status","params":[],"id":1}' http://ip:port But I got the message: ...
1
vote
0answers
107 views

Ganache is not showing any events

I have a contract method which emits events but ganache seems not to catch any events. I say this because when I deploy my contract on ropsten the events are being caught fine but only in ganache I ...
0
votes
2answers
43 views

Create fastest possible localhost Ethereum test net

Is there an Ethereum test blockchain (similar to Ganache) which prioritises calculating transactions and creating a local blockchain 'db' as quickly as possible? Requirements: - Calculate ...
1
vote
1answer
97 views

Connecting to a blockchain started with ganache-cli with Ganache GUI

I start a blockchain with ganache-cli, then I create a workspace in Ganache GUI the same seed phrase and port, but I keep getting this error in Ganache: I get and error this port is being used by ...
0
votes
1answer
72 views

rpc error with payload and exception thrown in contract code

This is the problem I get when trying to run my contract! And then when I go ahead and run it, this pops up This is my js code: import React, { Component } from 'react'; import Web3 from 'web3'; ...
0
votes
0answers
40 views

How to deploy contract instance in blockchain with abi and contract address?

I am following this (python ethereum interface tutorial) and contracts to compile and deploy in ganache cli. Till now i am able to compile and deploy contracts with web3.py,py-solc and ganache node. ...
0
votes
1answer
25 views

How can I debug a my Solidity smart contract with a GUI?

Is there any way to debug a Solidity smart contract with a GUI, like remix? How can I do it for both testnets and mainnet?
2
votes
1answer
36 views

Can the block number be set back in ganache?

I know about tools like ganache-time-traveler that let you advance the block number. But is it possible to go back to a lower value?
1
vote
1answer
20 views

What are the ways to call a smart contract function during development?

What are the ways to call a smart contract function during development using Truffle simulated VM with a GUI interface (like Remix or EtherScan offer)? I know I could use CLI options like Truffle ...
0
votes
0answers
77 views

Smart Contract is not working on Geth private network, while it does work on Ganache as well as Remix

I've only begun working with geth from last week and have faced the quite a challenge. I've written a smart contract and it works on remix (JavaScript VM) but somehow it does not work on my geth ...
0
votes
0answers
40 views

Can't create eth accounts on wifi by using ganache-cli@v7.0.0-beta.0

I was previously getting out of gas error which was resolved by following this issue. Now i installed ganache-cli@v7.0.0-beta.0 . It creates ethereum accounts on localhost if i write the following ...
0
votes
0answers
54 views

“Out of Gas” while transferring ethereum from account to contract

I am using ganache to create 10 ethereum accounts. I want to transfer ethereum from one account to a smart contract. I am doing this by writing two following smart contracts in solidity; pragma ...

1
2 3 4 5
7