Skip to main content
Version: v3.0.0-nightly.20250927

Aztec.js

Aztec.js is a library that provides APIs for managing accounts and interacting with contracts on the Aztec network. It communicates with the Private eXecution Environment (PXE) through a PXE implementation, allowing developers to easily register new accounts, deploy contracts, view functions, and send transactions.

Installing

npm install @aztec/aztec.js

Importing

At the top of your JavaScript file, you can import what you need, eg:

import {
createPXEClient,
waitForPXE,
} from '@aztec/aztec.js';

Flow

These are some of the important functions you'll need to use in your Aztec.js: