<aside> 🪖 The important thing to note here is that we can make Solana blink in a backend language so our own choice. The language should be able to support CORS-HEADERS and should be able to make GET, POST, and OPTION HTTP requests in this case.

A few valid examples of this that people are building right now are the following:

Also here are a few documentation links that you can utilize in this case:

Solana Actions in Next.js

<aside> 🪖 In this specific example we will be building a solana action in Next.js

</aside>

So to get started with Solana Actions, firstly we need to create a next.js app in our terminal. The command for this is as follows:

npx create-next-app name-of-the-project

Once you have created the project directory you have to go inside it using this command:

cd name-of-the-project

Now install the required dependencies:

npm i @solana/actions @solana/web3.js

The structure of the project is usually as follows:

Untitled

Following this we will create an app route inside the app directory of the next.js app. The way I have created my app directory is this: