-
As a Web3 provider:
var ganache = require("ganache-cli"); web3.setProvider(ganache.provider());
As a general http server:var ganache = require("ganache-cli"); var server = ganache.server(); server.listen(port, function(err, blockchain) {...});
'Blockchain' 카테고리의 다른 글
Hyperledger(하이퍼레저) (0) 2023.02.09 Ganache background instance 실행 (0) 2023.02.01 Web3 Tutorial (Next.js, web3js,Truffle, Solidity) (0) 2023.01.29 Blockchain 크기(용량) 변화 (0) 2023.01.29 Ganache-cli option (1) 2023.01.28 Ethereum Wei, Kwei, Mwei, Gwei, Twei, Pwei, Ether (0) 2023.01.28 Ethereum Block 최대 GAS 용량 (0) 2023.01.28 Ethereum GAS Limit, GAS Price, Block GAS Limit, Total fee (0) 2023.01.28