This is a Next.js project bootstrapped with create-next-app
that we built to show off
how easy it is to integrate the Synth3sis API into your apps to offer invisible wallets, gas-less NFT minting and more to your users!
Before we get started, are you looking for more resources? Check out the following quick Links
- Synth3sis API Docs - Our official documentation
- API Swagger Docs - Swagger docs with a request builder
- Synth3sis API Demo - This is a live version of this app :)
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.tsx
. The page auto-updates as you edit the file.
API routes can be accessed on http://localhost:3000/api/mint. This endpoint can be edited in pages/api/mint.ts
.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
The Synth3sis API is implemented in the src/services/synth3sis.service.ts
. This service is called in the /api/mint
API route (src/pages/api/mint.ts
)
to create or retrieve a wallet for a user, and to mint an NFT for that user.