Guides

Open Action End to End Guide

In this tutorial you will be create an Open Action and integrate it into a front-end Lens application using the Open Action CLI.

The codebase for this CLI is located here.

Also check out https://www.lens.xyz/openactions for open source Open Actions.

Prerequisites

To follow along, you will need to install Foundry. Installation steps below, or for more detailed instructions see the documentation https://book.getfoundry.sh/getting-started/installationhere.

# first install foundry
curl -L https://foundry.paradigm.xyz | bash

# once it's installed, run the following command
foundryup

Project setup

This app will contain two main codebases - a smart contract directory and a front end.

Scaffold the Open Action project by running the following command:

npx create-open-action