dreamoftrees / demo-dapp-wagmi

Demo Dapp using 0xsequence + wagmi

Home Page:https://0xsequence.github.io/demo-dapp-wagmi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo Dapp + Wagmi

Dapp example on how to use Sequence Wallet with Wagmi. Demonstrates how to connect a wallet, sign messages and send transactions.

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

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

Usage

  1. yarn
  2. yarn dev
  3. Open browser to http://localhost:4000 to access the demo dapp
  4. Open browser inspector to see responses from your wallet

Development

See https://github.com/0xsequence/demo-dapp-wagmi/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. Finally, this example is compatible with Ethereum EIP1193 and standard JSON-RPC Web3Provider, so any dapp can plug in which is compatible with 1193 providers.

Screenshots

Connect Wallet with Wagmi with Sequence + Metamask + WalletConnect options:

Connect Wallet

Execute common wallet functions:

Wallet functions

LICENSE

Apache 2.0 or MIT (your choice)

About

Demo Dapp using 0xsequence + wagmi

https://0xsequence.github.io/demo-dapp-wagmi/

License:Apache License 2.0


Languages

Language:TypeScript 84.5%Language:HTML 12.1%Language:JavaScript 2.9%Language:CSS 0.5%