Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
897 views

Getting `Connector not connected` error with wagmi

I'm integrating Wagmi into my Next.js application to handle contract simulation in the backend with tRPC. However, I'm encountering an error message stating Connector not connected. I've attempted to ...
Mohit's user avatar
  • 124
1 vote
2 answers
1k views

WAGMI: useWriteContract is unresponsive

I have a simple form where I'm asking the user for a token address, token id and it's price. On submitting these values I want to call a function on my smart contract for which I'm using wagmi's ...
Sam Hawkz's user avatar
0 votes
2 answers
696 views

Wagmi write contract

I have this code here import React from 'react'; import { usePrepareContractWrite, useContractWrite } from 'wagmi'; import lottoABI from './lottoABI.json'; import { parseEther } from 'viem'; // ...
Joe Code's user avatar
2 votes
2 answers
2k views

Wagmi "useAccount" connector is undefined after refreshing page using next.js

I am using WAGMI and the Rainbowkit connector for my Dapp. After deploying it on production, I have encountered a strange problem. Sometimes, after refreshing the page or opening it in a new tab, the &...
Nightcrawler's user avatar
1 vote
1 answer
672 views

wagmi usePrepareContractWrite pass an struct argument in args: []

I have an error when trying to write to a contract by using usePrepareContractWrite by passing a struct, heres my struct class Job { id: BigNumber = BigNumber.from("-1"); ...
Ethan's user avatar
  • 11
0 votes
1 answer
760 views

How to auto redirect user to metamask for confirm the transaction in mobile with wallet connect(rainbowkit & wagmi)

in my dapp i'm using rainbowkit for connection, dapp working perfectly in desktop but in mobile when i connect my dapp with wallet-connect option, i have to go manually in metamask to confirm the ...
vikas's user avatar
  • 1
0 votes
1 answer
1k views

Wagmi usePrepareContractWrite is not a function

I was following a youtube tutorial for RainbowKit and Wagmi then i stumble upon this problem. " Unhandled Runtime Error TypeError: (0 , wagmi__WEBPACK_IMPORTED_MODULE_6__.usePrepareContractWrite) ...
dino's user avatar
  • 11
0 votes
1 answer
1k views

Wagmi useSigner hook doesn't work when url has a query parameter in a Next JS project

I am trying to use the useSigner hook from wagmi. My project is a Next JS project and I am using the rainbow kit button to connect. If I am at a page with a url like localhost:3000 the signer loads at ...
Suhel Kapadia's user avatar
1 vote
1 answer
195 views

example of HD Wallet injection into RainbowKit

I want to test my DApp which uses RainbowKit and WAGMI. I figured that the easiest way would be to use an HDWalletProvider and use it in the createClient function. I was unable to find an example. ...
Micha Roon's user avatar
  • 2,223
2 votes
0 answers
829 views

RainbowKit does not work with MetaMask on iOS [closed]

Current Behavior On iOS, when I tap "connect wallet", the "Connect a Wallet" overlay, I click "Metamask" and it directs me to the iOS App Store. Expected Behavior When I ...
George Pickett's user avatar
1 vote
1 answer
1k views

wagmi - useContractWrite - eth_call - Transaction reverted: function selector was not recognized, but sendRawTransaction going through

Trying to do a contract interaction, rainbowkit/metamask is connected to my local host rpc from hardhat, I am having problems completing a transaction... Am I doing something wrong here? Metamask ...
Stackaccount1's user avatar
1 vote
4 answers
8k views

How to get provider using rainbowkit wallet if connected via walletconnect or coinbase

I'm using rainbowkit wallet which offers various wallet options such as walletconnect and coinbase. My question is, if I'm connected via metamask then my web3 instance can use window.ethereum as ...
bbusdriver's user avatar
  • 1,164