Generate Ganache local blockchain logs with accounts, transactions, and block mining. Perfect for Ethereum smart contract testing and Web3 development tutorials.
Press Ctrl + C to exit. Output is simulated for demo purposes only.
This module simulates local accounts, rpc calls, and transaction flow log events with realistic pacing.
It is designed for demos, log pipeline testing, and documentation where the real stack is unavailable.
All output is generated locally in the browser and is safe to run.
Ganache CLI v2.13.2 (ganache-core: 2.13.2) Available Accounts (0) 0x90f8bf6a479f320ead074411a4b0e7944ea8c9c1 (1000 ETH) Listening on http://127.0.0.1:8545 eth_sendTransaction Transaction: 0x8b1f2c3d4e5f6a7b8c9d Gas used: 21000
No. It is a simulator that prints log text only.
Yes. The CLI supports speed and repeat options, and the web page can be refreshed.
No. It does not install, update, or modify anything.
Ganache is a local Ethereum blockchain for development. It prints accounts, private keys, and transaction logs. Developers use it for smart contract testing.
The output above mimics Ganache CLI so you can test log ingestion or demo blockchain tooling without running an actual node.
Popular questions and answers from Stack Overflow related to Ganache.
Use ganache --fork https://mainnet.infura.io/v3/YOUR_KEY to fork Ethereum mainnet. Add --fork-block-number to fork at specific block. This allows testing against real contract state.
Use the --gasLimit flag: ganache --gasLimit 12000000. In ganache-cli config: gasLimit: 12000000. This helps when deploying large contracts.
Use --database.dbPath flag: ganache --database.dbPath ./ganache-data. Data persists in that directory. Without this, blockchain state is lost on restart.
Ganache automatically creates 10 accounts with 1000 ETH each. Use ganache --wallet.defaultBalance 10000 to change default. Access accounts via web3.eth.getAccounts().
In hardhat.config.js, add network: { ganache: { url: "http://127.0.0.1:8545" }}. Run Ganache first, then npx hardhat run --network ganache script.js. Or use Hardhat Network (built-in).
Ganache GUI shows transactions in the Transactions tab. For CLI, use --verbose flag. Or query via web3: web3.eth.getTransactionReceipt(txHash).logs for event logs.
Use --miner.blockTime 0 for instant mining (default). For manual mining, use evm_mine RPC method: curl -X POST --data '{"jsonrpc":"2.0","method":"evm_mine","params":[],"id":1}' localhost:8545.
Use --wallet.unlockedAccounts flag with address: ganache --wallet.unlockedAccounts 0xAddress. This allows sending transactions from any account without private key, useful for testing.
Use evm_setNextBlockTimestamp RPC method before mining a block. Or evm_increaseTime to advance time by seconds. Useful for testing time-dependent contracts.
In MetaMask, add network: RPC URL http://127.0.0.1:8545, Chain ID 1337 (or 5777 for older versions). Import Ganache accounts using private keys shown in Ganache output.
Popular video tutorials to learn more about Ganache.
freeCodeCamp.org
Full blockchain development course using Ganache for local Ethereum testing. Covers smart contracts, Truffle, and Web3.js integration.
Watch on YouTubeDapp University
Learn to test Solidity smart contracts using Ganache local blockchain. Covers test environments, debugging, and fork testing.
Watch on YouTube