New answers tagged react
0
votes
fetching pinata works in dev environment but in production it does not?
This likely because you are using the Pinata Public Gateway gateway.pinata.cloud which are not recommended for production use. You may want to consider using a Dedicated IPFS Gateway as they are less ...
0
votes
I am trying to display image on frontend using pinata and ipfs but facing this error
From the error it sounds like its more related to display(address) but let us know if you need more assistance with the upload part! We have some React examples here as well as an Next.js Template you ...
1
vote
React (opts:) not working, am i missing dependency?
That version of Web3Modal doesn't work any more and has been deprecated. Try v3 check docs here: https://docs.walletconnect.com/web3modal/react/about?platform=ethers
0
votes
How to call useContractRead of wagmi in diferents places of React Component
I encountered this issue and the wagmi react hooks gave me headaches as I was working with dynamic arguments. I ended up using the wagmi core actions and they worked just fine. You might have a little ...
0
votes
Accepted
Uniswap - swap between Sepolia and my own erc-20 token
get provider in ethers v6:
const provider = new ethers.JsonRpcProvider("");
get provider in ethers v5:
const provider = new ethers.providers.JsonRpcProvider("");
0
votes
How to handle wrong chain error [Infura, Wagmi, React, Typescript]
provider = new ethers.InfuraProvider('sepolia', infuraApiKey);
...
//in your React/NextJs:
const { chain, chains } = useNetwork();//from Wagmi
if (chain.name.toLowerCase() !== expected_blockchain....
Top 50 recent answers are included
Related Tags
react × 594web3js × 222
solidity × 209
ethers.js × 123
metamask × 111
truffle × 78
dapps × 62
javascript × 53
blockchain × 33
dapp-development × 29
hardhat × 29
wagmi × 29
ethereumjs × 27
drizzle × 27
frontend × 23
typescript × 21
nft × 19
ethereum-wallet-dapp × 18
contract-development × 17
events × 17
ipfs × 17
web3-providers × 17
nodejs × 15
walletconnect × 14
wallets × 12