Skip to content

capsule-org/capsule-stackup-example

 
 

Repository files navigation

Capsule Integration with UserOp.js Using Next.js

This demonstration application illustrates how to integrate self-custodial MPC + Account Abstraction wallets with Capsule and userop.js.

Getting Started

Clone this repository to your local machine.

Prerequisites

Configuration

The application uses environment variables for configuration.

  1. Copy the .env.example file into a new .env.local file:

    cp .env.example .env.local
  2. Open the .env.local file and add your Capsule API Key and Stackup RPC URL:

CAPSULE_API_KEY=Your_Capsule_API_KEY
STACKUP_RPC_URL=Your_Stackup_RPC_URL`

Install Dependencies

Install all dependencies by running the following command:

npm install

Run the Application

You can start the application with the following command:

npm run dev

The application should now be running at http://localhost:3000.

Conclusion

This demonstration app provides a great starting point for integrating self-custodial MPC + Account Abstraction into your Ethereum DApp. By utilizing Capsule and UserOp.js along with Next.js, it's possible to create a more user-friendly and secure DApp experience.

For further information and help, feel free to raise an issue in this repository.

About

A sample Next.js app that integrates Capsule with Stackup userop.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 86.5%
  • JavaScript 8.1%
  • CSS 5.4%