Node.js app that interacts with contracts
In this tutorial we'll go through the steps for building a simple application that interacts with the Aztec Sandbox. We'll be building a console application using Javascript and NodeJS, but you may reuse the same concepts here for a web-based app. All Aztec libraries are written in Typescript and fully typed, so you can use Typescript instead of Javascript to make the most out of its type checker.
This tutorial will focus on environment setup, including creating accounts and deployments, as well as interacting with your contracts. It will not cover how to write contracts in Noir.
The full code for this tutorial is available on the aztec-packages
repository.
Dependencies
- Linux or OSX environment
- NodeJS 18 or higher
- Aztec Sandbox
Prerequisites
Basic understanding of NodeJS and Javascript should be enough to follow this tutorial. Along the way, we'll provide links to dig deeper into Aztec concepts as we introduce them.