Questions tagged [nextjs]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
31 views

Display Updated Wallet Balance After Transaction Confirmed

i'm learning solana development from Buildspace and this is the tutorial source code for the next.js app https://github.com/buildspace/solana-send-sol-frontend.git the component to display the solana ...
bwnnwtt's user avatar
  • 11
2 votes
1 answer
61 views

umi functions causing Application error: a client-side exception has occurred

My website works fine locally but when deployed to Vercel, I get a client-side exception error. After checking other parts of the website, I've found the culprit to be in my UMI function code. I'm ...
Miles Donald's user avatar
0 votes
0 answers
59 views

Mint Error TypeError: Cannot read properties of undefined (reading 'length')

I'm using @metaplex-foundation/umi version 0.8.2. I upgraded from 0.7.14 because the older version doesn't install correctly anymore(get error missing serializers module) with the new version my mint ...
Miles Donald's user avatar
2 votes
2 answers
41 views

How to update items available count on candy machine UI after someone mints? Next app using umi

I built a ui on next js using typescript and need the items available count to not only show currently available items but to update after a user mints. Currently, I'm using candyMachine.data....
Miles Donald's user avatar
2 votes
3 answers
108 views

Add spl-token balance to wallet balance context provider

I'm trying to add a balance of USDC in a connected wallet that updates on a nextjs typescript website. I want to add it to my SOL balance context provider or do I need to make a completely separate ...
Miles Donald's user avatar
0 votes
0 answers
56 views

NextJS doesn't build wallet instructions properly with Solita

I'm receiving the following error message when trying to send a transaction, using the Wallet Adapter in Nextjs 13, with a Solita generated SDK. Backpack & Phantom: WalletSendTransactionError: ...
Chris's user avatar
  • 131
1 vote
0 answers
75 views

Serverbased auth solution for solana wallet [closed]

I created my first opensource project: serverbased login + auth through solana message signing with the T3 stack (nextjs, next-auth, trpc & prisma) https://github.com/mattiprive/solana-login-t3-...
Matti's user avatar
  • 129
1 vote
1 answer
359 views

Issue with Next.js 13 and Solana Wallet Adapter packages

I am trying to implement the Solana wallet adapter to a nextjs 13 project using layout.tsx file. The Solana Wallet adapter was working with no problem on previous next.js versions. I tried to ...
Greer's user avatar
  • 13
2 votes
2 answers
148 views

How to dynamically import clusterApiUrl in next js

I want to dynamically import clusterApiUrl from "@solana/web3.js" using next/dynamic, but I get an error "clusterApiUrl is not a function". This is how I import it: const ...
Nooblantis District's user avatar
0 votes
1 answer
85 views

Transaction working locally and with ngrok (https), but not working when deploying to aws amplify

const lamports = 0.001 * 10 ** 9; const fromPubKey = new PublicKey( 'Wallet sending here' ); const toPubKey = new PublicKey( 'Wallet receiving here' ); const transaction = new ...
Kob3Bryant's user avatar
1 vote
0 answers
17 views

Next.js unresponsive after deployment to Azure/Vercel

After deploying next.js app to Azure/Vercel the site becomes unresponsive. I tried the site on a browser without wallet and the site works fine. After installing phantom to the browser the site works ...
Jakub Kopnicky's user avatar
3 votes
1 answer
162 views

Phantom: WalletSendTransactionError: Something went wrong nextjs

Code works in dev version In production: Error description: Phantom - RPC Error: Something went wrong. {code: -32603, message: 'Something went wrong.'} In server side: const { blockhash } = await (...
Yaryna Gushuley's user avatar
1 vote
0 answers
59 views

Sending SPL Token Exception

I am attempting to transfer tokens when a user clicks a button. Once a user connects their wallet I have this method that gets called when a user clicks a button async function claimTokens() { ...
ShadyTSD's user avatar
0 votes
1 answer
39 views

Conditional rendering with Solana Wallet Adapter & NextJS

I was wondering whether this was a safe way to render certain elements only for specific pubkeys when connected through Solana wallet adapter in Nextjs. This code returns an < AdminPanel /> when ...
Matti's user avatar
  • 129
1 vote
1 answer
144 views

Detect account switching in Phantom Wallet?

What is the best way to detect account switching in Phantom Wallet? I am using Nextjs.
user1948's user avatar
4 votes
2 answers
488 views

sendAndConfirmTransaction returns Cannot read properties of undefined (reading 'toString')

I cannot send the transaction here. Tried using wallet-adapter methods as well as solana/web3js methods, tried separating sendTransaction and confirmTransaction. Similar "cannot read .toString() ...
Ashwini Kumar's user avatar
0 votes
1 answer
136 views

How do I use WalletPovider for a function outside of return()?

I have been attempting to use the Solana Labs wallet adapter to create a NFT Staking site. The backend script is on the chain using Gemworks Gem Lab. Currently my front end has functions created by ...
Joshua's user avatar
  • 63
5 votes
1 answer
258 views

What method should a dApp use to detect a change in Wallet Network for any wallet supported in the Solana Wallet Adapter?

When building a Solana dApp, developers need to understand changes in both the active wallet for the current user and in changes to the selected network for that wallet. Changes to the active wallet ...
Wagg's user avatar
  • 93