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
-1
votes
1 answer

How to solve Opcode error when deploying on Ganache?

I'm trying to deploy to Ganache, which is running and configured and I keep getting the same error when running truffle migrate --network development --reset Ganache log: [8:17:47 AM] (node:19312) MaxListenersExceededWarning: Possible EventEmitter…
zendek
  • 24
  • 3
-1
votes
1 answer

How to configure ganache to test in polygon instead of ethereum

I was able to set up ganache today to learn about blockchain and try out solidity, truffle, VSCode to start developing. How should I configure the environment in order to learn polygon too? I guess I need to create a new ganache but with what…
Mark
  • 1
  • 1
-1
votes
4 answers

How do I connect to Ganache with ethers?

const ethers = require("ethers"); const fs = require("fs-extra"); async function main() { // http://127.0.0.1:7545 // Compile in our code // Compile them seperately const provider = new ethers.JsonRpcProvider("http://127.0.0.1:7545"); …
-1
votes
1 answer

Ethersjs Serialize Back But Hash Doesn't Match

This question is regarding raw ether transactions. My understanding is that the transaction is serialized to recursive length prefix(RLP), then this string is hashed using keccak256. This will be the hash of the transaction that will also be…
Liviu Stirb
  • 5,876
  • 3
  • 35
  • 40
-1
votes
2 answers

Declare constant at file level in solidity 0.4.17

I need to declare a "global" constant that can be accessed by another contract. Given a very simple Solidity contract as follows: pragma solidity ^0.4.17; uint256 constant MY_CONSTANT = 3; contract MyContract { constructor() public {} } This is…
Thaiminhpv
  • 314
  • 2
  • 10
-1
votes
1 answer

Scripts to deploy and interact with smart contract in remix

I'm building a smart contract in solidity and using remix plugging for VSCode to deploy and test the same. I have a local network using ganache, and connecting remix to it (http://127.0.0.1:8545) to deploy my contract and test. Problem is every time…
Kural Manivannan
  • 55
  • 1
  • 1
  • 10
-1
votes
1 answer

Unable to install Ganache

Unable to install Ganache, because of Truffle certificate expired enter image description here
-1
votes
1 answer

How to get smart contract info? like code and ABI in a local ganache node

I'm learning ethereum blockchain. I'm using web3.js with Ganache as a dev node and I want to query the information of a smart contract (i have the address and i want to get the code and the ABI) I checked the documentation about web3.eth.Contract…
-1
votes
1 answer

How to reference LINK token on (forked) development network without "invalid opcode"?

I like to run a number of local tests. Everything works well on rinkeby and other test chains. However, the local development chain disagrees with my configuration. When I run a forked development network: brownie console --network mainnet-fork The…
RndmSymbl
  • 511
  • 6
  • 24
-1
votes
1 answer

How to access Ganache hosted on docker container from host OS?

I'm using cli version of ganache on ubuntu docker container, and need to access it from my host OS, ie. macos, how can i change the RPC url of ganache, from 127.0.0.1 to 0.0.0.1?
Harshit Jain
  • 885
  • 11
  • 15
-1
votes
1 answer

What do i need to use to make a website like etherscan?

I want to make a website like etherscan which can search for smart contracts or balance of ETH wallet. Now I am using truffle, ganache, web3.js, React, metamask to practice ethreum blockchain, and got a little bit of concept of it. My next goal is…
Emily
  • 1
  • 2
-1
votes
1 answer

ERROR: invalid address (arg="", coderType="address", value=[0])

I am building a token smart contract using truffle and ganache. i was testing the transfer function. Code is in the image below In my token.sol file i created a function name transfer function transfer(address _to, uint _value) public { When i ran…
Iammrjude1
  • 31
  • 1
  • 8
-1
votes
1 answer

How to get a specific account from web3 with version 1.2.x?

In an old version of web3 web3.eth.accounts[0] returns a sepcific account. I used it as a parameter for the vote function like this: app.vote(1, { from: web3.eth.accounts[0]}) Since version 1.2.x web3 uses web3.eth.getAccounts() to return a list of…
-1
votes
2 answers

How to develop simple DAPP for banking using ethereum ganache and simple html UI?

I want to develop basic DAPP for banking which has functionality as withdraw, deposit, getBalance using ganache ethereum with simple UI.
RAHULP
  • 1
-2
votes
1 answer

Ganache Fork Fantom Mainnet Gas Token

I have forked fantom network with using Ganache but now the problem is that I dont have any FTM on my Forked-Fantom chain since Ganache auto create accounts with 100 Eth only. Any advice for me ? How can I swap some FTM with eth on my forked-Fantom…
Yagiz Ozen
  • 51
  • 1
  • 6
1 2 3
21
22