Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [nextjs]

The tag has no usage guidance.

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

Building dApp To Allow Users to Customize and Deploy Tokens

I have been stuck for quite awhile and cant get past it. I've found some gits of old projects with similar concepts, but none have the features platforms like some I've seen lately, such as: [...
DevJimmy's user avatar
0 votes
1 answer
21 views

Why doesn't some "favicon.ico" files work? [closed]

I have written a few NextJS projects and they worked fine. But recently I have encountered a strange issue. Usually after I replace favicon.ico under /src/app directory, the icon will be updated to ...
HouseHusband's user avatar
0 votes
0 answers
23 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 ...
Ibra's user avatar
  • 71
0 votes
0 answers
13 views

send the request to take(transfer) the bid price without any confirmation from the bidder when the seller accept the bid offer

When an NFT seller attempts to sell their NFT using the "sell to the highest bid" option on OpenSea, and a bidder tries to place a bid, the price value set by the bidder will not be ...
unni krishnan's user avatar
1 vote
0 answers
106 views

EthereumProvider from @walletconnect/ethereum-provider not seeing my Infura project

I'm having trouble with getting EthereumProvider to connect via the Infura API key. I use it in my connection logic like this: const provider = await EthereumProvider.init({ ...
Oleh Yatskiv's user avatar
0 votes
0 answers
23 views

Need help with Session Management for Decentralized Nextjs app using wagmi Library

Please find github gist to the source code. where i have implemented Wallet connection using WagmiProvider. I dont want to repeat adding WagmiProvider to all the pages in my application, instead i ...
gtrharish's user avatar
0 votes
1 answer
1k 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
74 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
61 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
438 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
34 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
  • 21
0 votes
0 answers
8 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
16 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
130 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
123 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
1k 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
137 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
431 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
94 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
1k 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
450 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
33 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
2 answers
340 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
75 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
769 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
213 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
1 answer
112 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
45 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
38 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
119 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
59 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
141 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
158 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
  • 135
3 votes
2 answers
1k 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
956 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,695
1 vote
1 answer
733 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