Questions tagged [wagmi]
30 questions
3
votes
1 answer
RainbotKit and Wagmi Connectivity Issues for mobile {context: 'core/expirer'} 'No matching key. expirer
I was reading latest documentation from Rainbowkit and trying to integrate in my application , Here's the link for rainbowkit installation link :
https://www.rainbowkit.com/docs/installation
Main points to be noted is :
wagmi v1 requires the viem…

ksd030687d
- 298
- 2
- 12
2
votes
0 answers
How can I fix 'missing revert data in call exception' error when retrieving data from a smart contract on Mumbai testnet using web3?
I need some help with my web3 Dapp.
It is a next.js frontend that interacts with a solidity smart contract deployed to Mumbai testnet.
I keep getting this error interacting with the dapp.
Error retrieving election details: Error: missing revert data…

Tame.nation
- 31
- 2
2
votes
0 answers
TypeScript errors in node_modules during Vite wagmi rainbowkit build
I'm experiencing several TypeScript compilation errors during my Vite build process. The errors seem to originate from the type declarations in my node_modules.
Here are some of the…

DuLovell
- 21
- 2
1
vote
0 answers
Gatsby Build Fails with "Reading from 'node:crypto' is not handled by plugins" but Development Build Works Fine
I'm currently working on a Gatsby project using TypeScript, and I've encountered an issue during the build process (yarn build). The error message I receive is:
Reading from "node:crypto" is not handled by plugins (Unhandled scheme).
Webpack…

Ishaan Patel
- 205
- 1
- 12
1
vote
1 answer
Viem Type Inference ABI not being found
I have a situation where I believe I followed along the documentation and online information to make it work, but I haven't managed to do so yet.
I have migrated from Viem 0.8.x towards 1.4.1. This is the function I try to read from my ABI:
{
…

Raül
- 137
- 3
- 15
1
vote
1 answer
Wagmi useContractEvent listener can't access useState variable
I'm stuck on this problem that I really can't make sense of.
When trying to access the hash state variable from the listener function in useContractEvent it is undefined.
I can access the hash state variable outside of the listener function in…

0xRLA
- 3,279
- 4
- 30
- 42
1
vote
1 answer
How can I get events from a transaction receipt using Wagmi?
Ethers.js has ContractReceipt which extends TransactionReceipt that includes an array of events from the transaction: https://github.com/ethers-io/ethers.js/blob/master/packages/contracts/src.ts/index.ts#L99
Is it possible to get this array using…

Brian Doyle
- 21
- 1
1
vote
2 answers
How to solve package incompatibility when adding wagmi viem to React/Typescript project?
I am trying to add wagmi and viem packages to the project. My project has react-scripts package and I am using the latest version 5.0.1. Typescript is running with version 4.9.5. However, when I try to add wagmi and viem, the typescript is requested…

SEB
- 11
- 2
1
vote
1 answer
Web3Modal connectors issue with typescript
My Dapp is on typescript using web3modal for react wagmi, and after upgrading my apps to latest web3modal, I'm getting connector issues. I'm attaching code, error and packages used accordingly.
import {
EthereumClient,
w3mConnectors,
…

Shahzaib Ayyub
- 96
- 9
1
vote
0 answers
Walletconnect suddenly stopped working, infinite loading
I've a website that has been deployed for weeks and it was working fine, I didn't even touch the code and it's now not working. Even on the WalletConnect website, their "connect wallet" buttons are not working.
But I've Checked other websites, and…

Sammy Mishal
- 61
- 2
- 5
1
vote
1 answer
How to refech queries in wagmi
I think Wagmi uses react-query under the hood. So I want to refresh queries whenever and wherever I wanted using invalidateQueries method like we use to do with react-query.
Here is the query that I want to refetch:
import { useContractRead } from…

Nightvision
- 96
- 12
1
vote
0 answers
Getting error in @Wagmi/connectors package while using Angular, Viem, and Ethers libraries
I'm working in a new project that uses Wagmi, Viem and Ethers libraries.
I installed the project without any problem. However, I've the following error in one the files of the @Wagmi/connectors package:
enter image description here
I've tried…

Sergio
- 11
- 2
1
vote
0 answers
Creating a contract instance with wagmi provider using new ethers.Contract();
I am migrating our dApp from using an older version of web3modal to wagmi. We were using our contracts like this
export const dummyFunctionWrapper = async (
providerOrSigner: providers.Provider | providers.Signer,
contractAddress: string,
…

Tajammul
- 9
- 3
0
votes
0 answers
How to prevent edit transactions in a metamask when using wagmi?
When I developed DApp a few months ago, there was no edit function to change the amount or type of token to be sent to Metamask when creating contract,
Today, I checked while developing another service and found that there was an edit function, so…
0
votes
1 answer
a working example of web3modal with typescript 5
I wanted to play around with web3modal (walletconnect) in typescript.
I followed the official guide, but was unable to finish my setup due to dependency problems
to reproduce simply run the following:
npx create-react-app web3modal --template…

Radek Domański
- 3
- 3