start-ganache
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Start Ganache

Simple tool for starting own Ethereum network simulator.

import { startGanache, privateKeys, Multicall } from 'start-ganache'
import { Wallet, constants } from 'ethers'
import { deployContract } from 'ethereum-waffle'


async function main() {
    const port = 8545
    
    const provider = await startGanache(port)

    const wallet = new Wallet(privateKeys[0], provider)
    await wallet.sendTransaction({ to: constants.AddressZero })
    const multicall = await deployContract(wallet, Multicall, [])
}
main()

Readme

Keywords

none

Package Sidebar

Install

npm i start-ganache

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

713 kB

Total Files

16

Last publish

Collaborators

  • justynabroniszewska