Questions tagged [nextjs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
50 views

How to use useReadContract in callback wagmi?

Hello I doing project web3 and i use wagmi. When i get listTokenUrl, after i want call each item to read tokenUri, but have error "Error: React Hook "useContractRead" may be executed ...
Anh Tuấn Lê's user avatar
1 vote
0 answers
19 views

How to turn-off NextJS hot module replacement warnings

I'm just starting out with the Next.js framework, and I can't find any information on how to turn off the repetitive warnings caused by hot reloading a modified page: This may have been caused by live ...
Lucky Degen's user avatar
0 votes
1 answer
36 views

How do I remove Gas limit on Solidity Code

I am new at Solidity and Blockchain. I Have written this solidity code to send all NFTs in wallet. contract MultiERC721Transfer { // Mapping to keep track of approved contracts mapping(address ...
Daniel's user avatar
  • 1
0 votes
0 answers
130 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'; // Your ...
Joe Code's user avatar
0 votes
0 answers
31 views

Solidity query works in dev environment but not in production build (nextJS)

I am calling a function that queries the token balance of a user. The query works on a dev environment but not in production build. I am using metamask and ethers to interact with my contract on the ...
Ciirno's user avatar
  • 11
0 votes
0 answers
7 views

Card.jsx is not properly rendering

I'm beginner in the field of developing Decentralized applications. Currently i'm working on a project, in which i'm developing a crowdfunding application using NextJs, HardHat, Solidity. I'm facing ...
Vansh Batra's user avatar
1 vote
0 answers
13 views

Fleek CLI Error: "No api key found" despite FLEEK_API_KEY being set in .env file

I am currently working on hosting a Next.js app for an NFT marketplace on IPFS using Fleek. I've followed the steps to install the Fleek CLI using npm i -g @fleekhq/cli, built the app with npm run ...
Web3Phoenix's user avatar
1 vote
2 answers
45 views

Call revert exception error

I am getting this error when I try to access a string from a dynamic array call revert exception; VM Exception while processing transaction: reverted with panic code 50 [ See: https://links.ethers.org/...
Recep Çankaya's user avatar
0 votes
0 answers
85 views

Contract.on event listener not working (using Ethers.js + Next.js), how come?

got a simple question here for all you ethers.js hackers. Simple code, transactions go through, but why doesn't the contract.on function work? const handleSubmit = async (e) => { e....
sunsakis's user avatar
2 votes
2 answers
595 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
0 votes
0 answers
95 views

I have the following error when i coding my portfolio dex: Unhandled Runtime Error TypeError: destroy is not a function

***Hey guys! im coding a dex with foundry and nextjs using web3 library. In my swap page i have the following error:Unhandled Runtime Error TypeError: destroy is not a function. *** Here is my code: ...
Alan DEV's user avatar
0 votes
0 answers
243 views

Unsupported method: eth_sendTransaction

I am using API to let user buy my ERC20 token. I am passing a signed message to the API and creating a contract instance in the backend. I am able to pass the message in the backend and I am also able ...
gauthami vijay's user avatar
0 votes
0 answers
71 views

Cannot read properties of undefined reading map error is coming

I write an smart contract for crowdfunding but when I try to fetch the event data from smart contract and mapping the data this error is occur TypeError: Cannot read properties of undefined (reading '...
Yasir Saeed's user avatar
0 votes
2 answers
813 views

TypeError: Cannot read properties of undefined (reading 'map')

Hello Everyone Here is my next js code actually I try to fetch the event data from smart contract but when I mapping the data this error is occur TypeError: Cannot read properties of undefined (...
Yasir Saeed's user avatar
0 votes
1 answer
286 views

Type error in wagmi's usePrepareContractWrite for value

I have next app with typescript and using wagmi (https://www.npmjs.com/package/wagmi) package to work with smart contracts. I am trying to prepare contract write using usePrepareContractWrite and need ...
user122142's user avatar
0 votes
1 answer
26 views

Invalid BigNumber error when converting number fetched from NextRouter

I'm fetching a listing number for an item listed on a marketplace contract and then formatting it to ethers BigNumber. I'm getting error: invalid BigNumber value (argument="value", value=...
Miles Donald's user avatar
0 votes
1 answer
108 views

Error: network does not support ENS (operation=“ENS”, network=“maticmum”, code=UNSUPPORTED_OPERATION, version=providers/5.5.3 Network doesnot support

Hello I wrote a smart contract for crowd funding Actually I have two contracts One is create a campaign for donate funds and second is created campigns for crowd-funding and store all the campaigns ...
Yasir Saeed's user avatar
0 votes
2 answers
56 views

Can you setup a Chainlink function where the end user pays the LINK gas fee?

I was watching this video https://youtu.be/nKRZ1R2BC4Q. Chainlink functions look incredible. I have a Next.js app that I plan on integrating a Chainlink function. This Chainlink function will take the ...
ChristianOConnor's user avatar
0 votes
0 answers
544 views

Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'args')

I get this error Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'args') whenever I want to create an nft on my decentralised application and it only appears after I ...
Eyad Ahmed's user avatar
0 votes
1 answer
131 views

Programmatically verification of a smart contract on a Nextjs component

I have come across a situation in my project ( Hardhat, Nextjs, TailwindCSS ) where I need to verify my smart contracts right after their deployment. Clearly, we have a mother smart contract that ...
Sina Rahimi's user avatar
0 votes
0 answers
19 views

const { walletAddress } = req.query not passing wallet address to alchemy api

Alchemy api isn't recognizing the wallet address given by req.query. Not sure why. I tested it using Moralis api and it worked fine. Is this a known issue or is there a better way to input the ...
Miles Donald's user avatar
0 votes
1 answer
68 views

How to use the connected wallet in getNftsForOwner for Alchemy SDK function?

I'm using a combination of Thirdweb and Alchemy SDK to fetch all nfts in a connected wallet. Every example I've come across for Alchemy's getNftsForOwner function has the wallet address placed in the ...
Miles Donald's user avatar
1 vote
1 answer
39 views

Unexpected return of a function

I have a function on my contract that return true if the address on one list is equal to the msg.sender. The function works fine on remix but when I call it utilizing javascript with next.js and web3....
Hash1's user avatar
  • 13
1 vote
0 answers
26 views

Using Next.js and React for a DApp [closed]

This is a more general question, but I've been trying to learn how to build DApps using Ethereum, and have noticed that most tutorials are using Next.js and React.js. What is the advantage of using ...
src2012's user avatar
  • 11
1 vote
0 answers
99 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. ...
malteish's user avatar
0 votes
1 answer
43 views

Error when i call web3 api to sell and buy my ERC20 tokens in ReactJs

I have a ERC20 token and I have created a smart Contract to buy and sell my tokens. I have also created a front end to buy and sell my tokens. Now I want to create an API to sell and buy my tokens. ...
gauthami vijay's user avatar
1 vote
0 answers
103 views

How to pass web3 client from server to client in next.js?

I spent all day (meh, not a record (but I'm not finished yet lol)) trying to pass the web3 instance to the client side of my app. Why would I use it on the server side? Well, to keep my wallet ...
Eugene1111's user avatar
1 vote
1 answer
134 views

Can't load data from smartcontract using react-moralis useWeb3Contract() hook and useEffect() hook

I have a contract // SPDX-License-Identifier: MIT pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "./Voting.sol"; contract VotingEngine is ...
HideME's user avatar
  • 125
0 votes
0 answers
134 views

Error: cannot estimate gas; transaction may fail or may require manual gas limit in goerli testnet

I am Trying to send transaction to my smart contract and I get this error: I estimated the gas price with const gasPrice = await provider.getGasPrice(); got the error tried using gas price greater ...
user118535's user avatar
3 votes
2 answers
738 views

Two wagmi's usePrepareContractWrite( ) in a single React functional component

There are two different functions in my smart contract which I want to connect to two separate buttons on my user interface. The component is function-based. So according to wagmi's documentation, I ...
Sina Rahimi's user avatar
0 votes
0 answers
639 views

JsonRpcEngine: Response has no error or result for request

I have an NFT marketplace project deployed on Vercel. I am having issue when minting the token. I upload them to Pinata without issue, the only thing when I call const tx = contract?.mintToken( ...
Yilmaz's user avatar
  • 1,540
1 vote
1 answer
530 views

Error: invalid BigNumber value (argument="value", value=null, code=INVALID_ARGUMENT, version=bignumber/5.7.0)

Within my front end part, I am using Wagmi's usePrepareContractWrite and useContractWrite hooks to execute a function of my smart contract. The function demands a uint argument. Therefore my '...
Sina Rahimi's user avatar