Skip to content

1Wallet is a gasless web3 wallet leveraging account abstraction for various actions like swaps on platforms such as 1inch, with WebAuthn authentication for secure FaceID/TouchID login without storing private keys

License

Notifications You must be signed in to change notification settings

Pradeep-selva/aa-swap-ethcc-fe

Repository files navigation

1Wallet UI - Gasless, Seedless HID Based Web3 Wallet

1Wallet UI is a user interface (UI) repository built with Next.js and WebAuthn for authentication, providing an efficient server interaction to create and manage web3 wallets. The wallet is designed on top of the on-chain multisig SAFE wallet, eliminating the need to store seed phrases, and offering the convenience of FaceID/TouchID for authentication. This gasless wallet allows users to execute transactions in a custodial and trustless manner.

The infrastructure that enables the smooth functioning of this UI can be found, HERE.

Introduction

1Wallet is a gasless web3 wallet that utilizes the Safe {WALLET} and the Safe AA SDK, enabling users to perform various actions such as swaps on platforms like 1inch. The wallet's core feature is the utilization of WebAuthn for authentication, allowing users to authenticate requests using FaceID or TouchID without the need to store any private keys or seed phrases.

Key Features

  • Gasless Transactions: 1Wallet enables gasless transactions by relaying calldata to the entrypoint for execution on the Safe wallet, saving users from paying gas fees for their transactions.

  • Secure Authentication: WebAuthn is used for authentication, ensuring a high level of security as the user's private keys are stored in the device's secure enclave.

  • Swaps on 1inch: The demo showcases the capability of the wallet by enabling users to place swaps on 1inch in a gasless fashion.

  • Self-Custodial and Trustless: 1Wallet allows users to manage their assets and generate orders via their devices in a self-custodial and trustless manner.

Dependencies

1Wallet is built on the following technologies:

  • Next.js: A React framework for building server-side rendered and static websites.

  • Safe {WALLET}: Provides the foundation for the gasless transaction modules and abstract automated wallet management.

  • WebAuthn: Enables secure and convenient authentication using FaceID or TouchID.

  • Stackup Bundler: Used for relaying transactions to entrypoint for execution.

  • 1inch: The 1inch API v5, Pathfinder, is an advanced discovery and routing algorithm that facilitates asset exchanges at the best rates by finding efficient paths for token swaps across protocols and market depths.

  • Supabase: It is utilized as the robust database solution to store user metadata, orders history, and other relevant information for seamless retrieval and management in the 1Wallet application.

Usage

To use 1Wallet UI, follow the steps below:

  1. Clone the repository to your local machine.
  2. Install the necessary dependencies using yarn.
  3. Create an env with NEXT_PUBLIC_RPC=<polygonRPC_endpoint>.
  4. Start the development server with yarn dev.
  5. To test this on a live build, run yarn devBuild
  6. Visit the local development URL in your web browser to access the 1Wallet UI.

Demo

This product's demo can be viewed here.

License

MIT © 1Wallet

About

1Wallet is a gasless web3 wallet leveraging account abstraction for various actions like swaps on platforms such as 1inch, with WebAuthn authentication for secure FaceID/TouchID login without storing private keys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages