Skip to main content

Setting up your project

Let's start by setting up a regular Javascript NodeJS project. Feel free to skip this part if you're already familiar with project setup and head directly to connecting to the Sandbox.

Create a new project

We'll use yarn for managing our project and dependencies, though you can also use npm or your Javascript package manager of choice.

  1. Ensure node version is 18 or higher by running.
node -v
  1. Create a new folder and initialize a new project.
mkdir sample-dapp
cd sample-dapp
yarn init -yp
  1. Add the aztec.js and accounts libraries as a dependency:
yarn add @aztec/aztec.js @aztec/accounts

Next steps

With your project already set up, let's connect to the Private eXecution Environment (PXE) running inside Sandbox and grab an account to interact with it.