Questions tagged [rainbowkit]
The rainbowkit tag has no usage guidance.
21 questions
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 &...
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 ...
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 ...
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");
...
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. ...
1
vote
0
answers
132
views
How to get provider if I am using rainbowkit wallet extension?
I am using window.ethereum to get the function for smart contract transaction but it only triggered my Metamask wallet extension instead of Rainbowkit. Is there an option to grab currently connected ...
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 ...
1
vote
0
answers
130
views
How can a (gnosis) safe app manage sensitive data and a session?
We built an app based on Rainbowkit and Next.js. It authenticates users using rainbowkit-siwe-next-auth. Next-auth uses several cookies to keep track of the session, and set them during sign-in.
...
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 ...
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) ...
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 ...
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 ...
0
votes
1
answer
20
views
My web3 js transaction has a gas estimate of $0.02 displayed with rainbow wallet, but with metamask it displays as $2.00
The more accurate is $0.02, is there anything I can do to make metamask look better.
This is on base chain.
0
votes
0
answers
68
views
How to send transactions on mobile in a Next.js app using Rainbowkit
I have a nextjs app installed with rainbowkit and connecting/sending tx's works fine on desktop. However, on mobile I'm able to connect through metamask but fail when sending a transaction.
Any ideas ...
0
votes
0
answers
37
views
Implementing Secure Seed Phrase Storage in Web3 Wallet Chrome Extension
I am in the process of developing a Web3 wallet application and I'm seeking assistance on implementing a secure seed phrase storage functionality within a Chrome browser extension.
Objective:
The ...
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';
// ...
0
votes
2
answers
579
views
How can I setup RainbowKit for the local running hardhat blockchain Node?
Currently I am working with some DApp projects.I'm using Rainbowkit for the wallet connection and using Sepoila for the testing . But I want to use the locally running hardhat node for the testing. ...
0
votes
1
answer
182
views
Not able to install rainbow kit
How to deal with these errors to install and integrate wallets
0
votes
1
answer
1k
views
RainbowKit - Custom authentication not verifying
I am implementing a custom authentication by createAuthenticationAdapter() from RainbowKit following the docs https://www.rainbowkit.com/docs/custom-authentication
The message to sign (login) shows ...
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 ...
0
votes
1
answer
899
views
Problem with implementing RainbowKit for wallets
I am integrating RainbowKit into my dapp to make connecting and disconnecting wallets easier. I am using Nextjs to develop a NFT marketplace.
I am given this strange error while running the project on ...