Giter Club home page Giter Club logo

demo-dapp's Introduction

Demo Dapp

Dapp example on how to use Sequence Wallet. Covers how to connect, sign messages and send transctions.

Try this dapp at: https://0xsequence.github.io/demo-dapp

For complete documentation on Sequence, please see: https://docs.sequence.build

Usage

  1. pnpm install
  2. pnpm start
  3. Open browser to http://localhost:4000 to access the demo dapp
  4. Open browser inspector to see responses from the remote Sequence Wallet

Development

See https://github.com/0xsequence/demo-dapp/blob/master/src/App.tsx for the source usage for a variety of functions. Be sure to open your browser's dev inspector to see output. Think of these functions as a "cookbook" for how you can perform these functions in your dapps.

Also note, sequence.js is built on top of ethers.js, and is API-compatible.

Screenshots

Opening wallet from dapp:

Open Sequence Wallet From Dapp

Send transaction from dapp:

Sequence Wallet is an Ethereum wallet supporting Ethereum mainnet, Polygon and more. Sequence will work with any blockchain which is EVM compatible and supports Ethereum's node JSON-RPC interface.

Here you can see in this screenshot the call to "Send DAI" from demo-dapp (https://github.com/0xsequence/demo-dapp/blob/master/src/routes/HomeRoute.tsx#L420). This function demonstrates how you can transfer an ERC-20 token like DAI on any Ethereum network.

Notice how you can pay gas fees for a transaction in either MATIC token or USDC for price of $0.01.

Transfer ERC-20 token on Polygon

LICENSE

Apache 2.0 or MIT (your choice)

demo-dapp's People

Contributors

agusx1211 avatar arilotter avatar attente avatar corbanbrook avatar dependabot[bot] avatar phabc avatar pkieltyka avatar samuelea avatar ta-999 avatar tolgahan-arikan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.