Deploying AZTEC to Ganache

For most dApp builders, deploying to Ganache is essential to test smart contract interactions with AZTEC.

To get started, check out the starter kit on the AZTEC github here. This kit contains the required migrations to deploy AZTEC to a local blockchain as well as example flows. This flow is the same for deploying AZTEC to a private fork of Ethereum.

  1. Clone the repository git clone git@github.com:AztecProtocol/aztec-ganache-starter-kit.git

  2. Install the dependencies cd aztec-ganache-starter-kit && yarn install

  3. Rename the .env file mv RENAME_ME.env .env

  4. Start up Ganache withyarn start (This will create 5 test Ethereum accounts from the credentials in .env)

  5. Deploy AZTEC! yarn migrate

If you would like to have a look under the hood at the required migrations and what they do, read the full article here.

Last updated