Web3 authentication for Vue3 apps based on WalletConnect v2 and wagmi
A Simple WalletConnect v2 integration package for Vue3 apps
Getting started
Installation
Use yarn or npm to install the package @kolirt/vue-web3-auth
.
Setup
Configuration
Add dependencies to your main.js
:
Custom chain
Custom rpc provider
By default, the package uses the walletconnect rpc provider. If you want to use a custom rpc from the chain, you can set the enableCustomProvider
option to true
.
Usage
Basic usage
Connect wallet button
FetchGasPrice
FetchBlockNumber
FetchTransaction
fetchTransactionReceipt
SendTransaction
SignMessage
Multicall
FetchBalance
FetchToken
ReadContract
WriteContract
EstimateWriteContractGas
ParseEvents
WatchContractEvent
Composable
UseFetchBalance
Demo
Example
FAQ
Check closed issues to get answers for most asked questions.
License
MIT.
Other projects
Check out my other projects:
- @kolirt/vue-modal - easy to use and highly customizable Vue3 modal package.