Initialization

In this doc and the three following we will build a Next.js application with Alchemy Smart Wallets from scratch. If you’re using any other tech stack, follow along with the key points of integration and adjust as needed!

Create a new Next.js app

Start by initializing a new Next.js app. Run:

$npx create-next-app@latest \
> --typescript \
> --tailwind \
> --app

This command passes in flags to use Typescript, Tailwind and the next app router. The following docs in this guide will expect you to use these.

Install Dependencies

You will need these three libraries:

Go ahead and install them to the project with a single command:

$npm install @account-kit/infra @account-kit/react @tanstack/react-query