Giter VIP home page Giter VIP logo

use-wallet-demo's Introduction

UseWallet Next.js Demo - Proof of State Ep. 14

This demo Next.js project was created to supplement a live-streamed interview on the Proof of State show, to demonstrate how to integrate the @txnlab/use-wallet library into a real-world Algorand application.

Promo Image

Stream Recording ๐ŸŽฌ

Connect on Twitter

Algorand Developers YouTube Channel

โœจ Features

  • Configured to support Defly, Pera, Daffi, Exodus, and WalletConnect providers
  • Demonstrates how @txnlab/use-wallet can be used to:
    • Build a wallet menu with provider/account selection
    • Connect to a wallet
    • Sign transactions
    • Send transactions
  • Shows balance of connected account, polled every 10 seconds
  • NFDomains integration displaying avatar and NFD name of the connected account (if one exists)
  • Uses the following technologies:

๐Ÿ”— Live Demo

๐Ÿ’ป Local Development

Prerequisites

  • Node.js v14.18.0 or higher
  • pnpm

Installation

  1. Clone the repository
git clone https://github.com/TxnLab/use-wallet-demo.git
  1. Change to the project directory
cd use-wallet-demo
  1. Install dependencies
pnpm install
  1. Start the development server
pnpm dev

How to Use

This demo app showcases the versatility and capabilities of the @txnlab/use-wallet library. You can experiment by tweaking various aspects of the configuration:

  1. Wallet Providers: Add or remove wallet providers

  2. Algorand Node Configuration: This demo app connects to Algorand Mainnet. You can change the node configuration to connect to Testnet or Betanet, using AlgoNode's public nodes or your own. Please note that currently only KMD, MyAlgo, and AlgoSigner support Betanet.

  3. WalletConnect Support: To integrate the WalletConnect provider, you'll need a unique project ID. Obtain it by:

    • Registering an account at WalletConnect Cloud
    • Creating a new project within your account. Each app needs its own unique project ID.

Full installation and configuration instructions for @txnlab/use-wallet can be found in the official repository: TxnLab/use-wallet. This will guide you through additional features supported by the library that might not be present in this basic example.

Contact

If you have any questions, suggestions, or would like to collaborate, feel free to get in touch through the following channels:

Your feedback and contributions are always welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.