Questions tagged [web3-react]
85 questions
0
votes
1 answer
How to detect transaction confirmation with web3.js and re-render with React
Context: The app is a simple on-chain todo list that allows you to see a list of todos and create new todos.
Problem: When I create new todos and send it onchain using createTask(), I am struggling to check for transaction confirmation, which then…

mkmkmkmk
- 47
- 1
- 6
0
votes
0 answers
MetaMask and react.. how does one authenticate?
The metamask documentation has this code: https://docs.metamask.io/guide/getting-started.html#basic-considerations
const ethereumButton = document.querySelector('.enableEthereumButton'); const showAccount =…
user19686218
0
votes
1 answer
How to keep MetaMask connection to the UI persistent with thirdweb-dev/react
I want to persistent metamask connection on closing the browser window. So when I connect my dapp to metamask, close the window, and open the dapp again, I don't need to connect it again. I implemented a Similar thing using web3-react but I am…

Jatin Gupta
- 101
- 4
0
votes
1 answer
web3 getTransaction receiver
I have tried using web3.eth.getTransaction to retrieve the receiver address. However, the return result "to: 0x55d398326f99059fF775485246999027B3197955" is the token address instead of the receiver address. The receiver suppose is…

Steven
- 3
- 3
0
votes
0 answers
Metamask Transfer Amount issue (floating digits not being shon on metamask) Using React web3
We are using transfer method in erc20 solidity contract to transfer calculated amount from one account to other.If the Amount is whole number(68055) metamask popup is getting opened and amount is being displayed. If the amount is floating point…
0
votes
0 answers
Unhandled Rejection (TypeError) App: Cannot read properties
I keep getting this error with my App.js file, below is the code for App.js :-
import React, { useRef, useState, useEffect, useCallback } from "react";
import { BrowserRouter as Router, Route, Switch, Redirect } from "react-router-dom";
import Web3…

Muskaan Sharma
- 23
- 1
- 5
0
votes
1 answer
web3Provider in next js
I try to use Web3-react v6 in Next JS and a got an error when try to wrapper mi entery app with the provider,
In _app.jsx I have this
import React from 'react';
import { Web3ReactProvider } from '@web3-react/core/dist';
import Layout from…

Barbaro Javier
- 42
- 1
- 7
0
votes
1 answer
How to handle the error thrown by "_fireError" in web3.js?
I was trying to catch the error thrown by the web3.js during the calling of a function in my smart contract. This is the code I use for calling the function:
contract.methods.mintBatch(quantity, data.nonce, data.hash, data.signature,…

Terry Windwalker
- 1,343
- 2
- 16
- 36
0
votes
1 answer
How does a Dapp integration works?
I am pretty much new in Dapp, I know python, and apart from it I have learned how to make a website on React with backend as Django Rest. But while starting with web 3, I am pretty much confused as if it is possible to make a frontend on React and…
0
votes
1 answer
how to solve websocket.onclose error in thirdweb?
I am new to next.js,I a, developing a website based on web3
so I have to use thirdweb.
First I ran this command to add thirdweb to my project :
yarn add @thirdweb-dev/react @thirdweb-dev/sdk ethers
then I changed the app.tsx to these codes :
import…

reza kakei
- 3
- 3
0
votes
0 answers
Reactjs: TypeError: Cannot read properties of undefined (reading 'map') at sendTransaction (TransactionContext.jsx:87:13)
I'm working on web 3.0 project . Context Api is used to carry out functions. However, the issue is that whenever I try to submit formdata to the context, an error message appears. Cannot read properties of undefined (reading 'map').
Actually, I'm…

sohaib
- 574
- 5
- 16
0
votes
0 answers
Using web3-react connectors is deprecated and may lead to unexpected behavior
I am currently implementing a wallet connection using react and useDapp provider.
For wallet connection, I installed @web3-react.
So injected-connector and wallet-connector of @web3-react are what I chose.
The problem is the warning of useEthers.ts…

toptecshare
- 166
- 2
- 24
0
votes
1 answer
Uncaught (in promise) ReactMoralisError: Provide a "appId" provided to
I'm building a dapp and when I'm trying to add the moralis provider to my code I get this error "Uncaught (in promise) ReactMoralisError: Provide a "appId" provided to ",
which is odd because I already provided the appId, I would appreciate any tip…

pardis.ti
- 113
- 7
0
votes
1 answer
Use two providers at the same time (one Ethereum, other — Polygon)
I'd like to use two providers at the same time, one is Web3Proivder, which I get through Metamask connection, and it works fine.
I'm stuck at setting up provider for Polygon right now.
I want to read data from storage from Polygon contracts, how do…

daniilorain
- 121
- 1
- 7
0
votes
2 answers
Error message with: Web3 + create-react-app + webpack 5
I am writing the frontend for a Dapp.
I have the script /src/config/index.js
import Web3 from 'web3';
const getLibrary = (provider) => {
return new Web3(provider);
};
export { getLibrary };
And the /src/index.js where I am trying to import…

Aitor Zaldua
- 33
- 6