All Projects β†’ tmm β†’ wagmi

tmm / wagmi

Licence: MIT license
React Hooks for Ethereum

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to wagmi

Web3 React
🧰 A simple, maximally extensible, dependency minimized framework for building modern Ethereum dApps
Stars: ✭ 788 (-53.4%)
Mutual labels:  hooks, dapp, web3
Use Wallet
πŸ‘› useWallet() Β· All-in-one solution to connect a dapp to an Ethereum provider.
Stars: ✭ 182 (-89.24%)
Mutual labels:  hooks, dapp, web3
nft-swap-sdk
Ethereum's missing p2p NFT and token swap library for web3 developers. Written in TypeScript. Powered by 0x.
Stars: ✭ 200 (-88.17%)
Mutual labels:  dapp, web3, ethers
ton-client-js
Everscale Javascript SDK
Stars: ✭ 60 (-96.45%)
Mutual labels:  dapp, web3
foodprint
Algorand dApp for blockchain-enabled food transparency and traceability in local food supply chains. For use by smallholder farmers, food co-operatives and consumers.
Stars: ✭ 43 (-97.46%)
Mutual labels:  dapp, web3
kleros-api-DEPRECATED
A Javascript library that makes it easy to build relayers and other DApps that use the Kleros protocol. DEPRECATED use https://github.com/kleros/archon for interfacing with standard arbitration contracts.
Stars: ✭ 20 (-98.82%)
Mutual labels:  dapp, web3
colonyDapp
Colony dApp client
Stars: ✭ 52 (-96.92%)
Mutual labels:  dapp, web3
MultiDexArbBot
This is an arbitrage bot that uses existing price aggregators such as 1inch, Paraswap, dex.ag, matcha and more to get the best exchange rates across different decentralized exchanges on different blockchains and ecosystems.
Stars: ✭ 67 (-96.04%)
Mutual labels:  dapp, web3
openzeppelin-network.js
An easy to use and reliable library that provides one line access to Web3 API.
Stars: ✭ 45 (-97.34%)
Mutual labels:  dapp, web3
typescript-eth-starter
πŸ”Œ Ethereum Dapp Basic Typescript Starter
Stars: ✭ 125 (-92.61%)
Mutual labels:  dapp, web3
web3-webpacked
Drop-in web3 solution for single-page Ethereum dApps
Stars: ✭ 36 (-97.87%)
Mutual labels:  dapp, web3
court
The Kleros court user interface.
Stars: ✭ 19 (-98.88%)
Mutual labels:  dapp, web3
NFT-Dapp-Boilerplate
A highly scalable NFT and DEFI boilerplate with pre added web3 and different wallets with a focus on performance and best practices
Stars: ✭ 51 (-96.98%)
Mutual labels:  dapp, web3
starter-kit-gsn
An OpenZeppelin starter kit focused on GSN.
Stars: ✭ 39 (-97.69%)
Mutual labels:  dapp, web3
vue-web3
πŸ™ Web3 blockchain bindings for Vue.js (inspired by Vuefire and Drizzle)
Stars: ✭ 63 (-96.27%)
Mutual labels:  dapp, web3
cyberevents
The protocol for EVENTs and TICKETs
Stars: ✭ 16 (-99.05%)
Mutual labels:  dapp, web3
nft-app
How to create your own NFT and mint NFT token
Stars: ✭ 145 (-91.43%)
Mutual labels:  dapp, web3
solidity-cli
Compile solidity-code faster, easier and more reliable
Stars: ✭ 49 (-97.1%)
Mutual labels:  dapp, web3
eth-sdk
Type-safe, lightweight SDKs for Ethereum smart contracts
Stars: ✭ 283 (-83.26%)
Mutual labels:  dapp, web3
LunDAO
LunDAO ζ˜―δΈ€ε€‹ιΌ“ε‹΅ζ’°ε―«θˆ‡ Ethereum η€ΎηΎ€η›Έι—œηš„δΈ­ζ·±εΊ¦ηš„δΈ­ζ–‡ζ–‡η« οΌŒι€ιŽδΈ€ε€‹ηŸ­ζœŸηš„ε―¦ι©—ε°ˆζ‘ˆε˜—θ©¦ DAO 可δ»₯ε¦‚δ½•ι€²θ‘Œη€ΎηΎ€ζ²»η†δ»₯εŠε›žι₯‹η€ΎηΎ€θ²’獻。
Stars: ✭ 50 (-97.04%)
Mutual labels:  dapp, web3

wagmi wagmi

React Hooks for Ethereum

Version License Downloads per month Best of JS Sponsors

Features

  • πŸš€ 20+ hooks for working with wallets, ENS, contracts, transactions, signing, etc.
  • πŸ’Ό Built-in wallet connectors for MetaMask, WalletConnect, Coinbase Wallet, and Injected
  • πŸ‘Ÿ Caching, request deduplication, and persistence
  • πŸŒ€ Auto-refresh data on wallet, block, and network changes
  • πŸ¦„ TypeScript ready
  • 🌳 Test suite running against forked Ethereum network

...and a lot more.

Documentation

For full documentation and examples, visit wagmi.sh.

Installation

Install wagmi and its ethers peer dependency.

npm install wagmi ethers

Quick Start

Connect a wallet in under 60 seconds. LFG.

import { Provider, createClient } from 'wagmi'

const client = createClient()

function App() {
  return (
    <Provider client={client}>
      <Profile />
    </Provider>
  )
}
import { useAccount, useConnect, useDisconnect } from 'wagmi'
import { InjectedConnector } from 'wagmi/connectors/injected'

function Profile() {
  const { data } = useAccount()
  const { connect } = useConnect({
    connector: new InjectedConnector(),
  })
  const { disconnect } = useDisconnect()

  if (data)
    return (
      <div>
        Connected to {data.address}
        <button onClick={() => disconnect()}>Disconnect</button>
      </div>
    )
  return <button onClick={() => connect()}>Connect Wallet</button>
}

In this example, we create a wagmi Client and pass it to the React Context Provider. Next, we use the useConnect hook to connect an injected wallet (e.g. MetaMask) to the app. Finally, we show the connected account's address with useAccount and allow them to disconnect with useDisconnect.

We've only scratched the surface for what you can do with wagmi!

Community

Check out the following places for more wagmi-related content:

Support

If you find wagmi useful, please consider supporting development. Thank you πŸ™

Contributing

If you're interested in contributing to wagmi, please read the contributing docs before submitting a pull request.

Authors

Thanks to julianhutton.eth (@julianjhutton) for providing the awesome logo!

License

WAGMIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].