Skip to main content

Questions tagged [react]

The tag has no usage guidance.

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

declared program id mismatch

We copied a solana program from a youtube vid. The program id : Ecr5UgGyJTnKraLRPYBXrK9RD7DfoVDYfSioVksnnfjA is this one. We copied it and deployed it on our own and here is what we got. program id : ...
SACRED- ESP's user avatar
0 votes
0 answers
24 views

Phantom Wallet: Issue with transaction, failed to send transaction: Transaction precompile verification failure InvalidAccountIndex

We're utilizing React version 16 and Node.js version 16. While creating an anchor provider to retrieve the program, we're encountering an error: "Failed to send transaction: Transaction ...
Sajjad Akhtar's user avatar
0 votes
1 answer
35 views

PHANTOM WALLET CONNECTION IN SOLANA REACT [closed]

I want to connect my phantom wallet in solana for my website which I can open in mobile browser. Is their any guidance or example through which I can integrate that part. For my upcoming project. If ...
SACRED- ESP's user avatar
1 vote
0 answers
17 views

Unusual SEO and Redirection Issues After Solana Wallet Integration

Overview Hello Solana community, We've recently encountered two significant issues upon integrating Solana wallet functionality into our dApp (domain: gray.market), and we're hoping for some guidance ...
Lucas Ferronato's user avatar
0 votes
0 answers
103 views

Is it normal for Phantom on Localnet to fail to simulate everything?

Every transaction I make on localhost fails to simulate. Is this expected anytime using Phantom on Localnet? New to Solana dev, so maybe I am dumb... I am using anchor I am using @coral-xyz/anchor ...
keegan's user avatar
  • 1
1 vote
0 answers
45 views

When I'm trying call the "Initialize pool" method I'm getting the following error in phantom wallet "no changes impacting asset ownership found"

We used the same code in local net there we got response but in dev net facing issue..below attached the code for your reference. const initializePool = async () => { const provider = GetProvider(...
osizdevtm2 demo's user avatar
1 vote
1 answer
25 views

What is a common/recommended hosting service for Solana Applications? [closed]

I am building an web based application with React and Anchor. I would like to host this site so users can access, preferably the cheapest option. :)
Nicholas Ashley's user avatar
1 vote
1 answer
63 views

Having trouble executing my custom program transaction on devnet/testnet

I've followed along with other peoples examples but I keep getting the 0x65 custom program error. I'm using @solana/web3.js, @solana/wallet-adapter-react, @solana/buffer-layout, and js-sha256 const ...
FudgyDRS's user avatar
  • 113
1 vote
1 answer
28 views

Is phantom wallet provides hooks

Is phantom wallet provides hooks for platforms like react js, next js? If you then please provide some documentations.
Pavan-0xblock's user avatar
0 votes
0 answers
42 views

Auto-Populate Wallet Address in Input Field After Connecting Phantom Wallet with Solana Adapter

I'm working on a React project utilizing the Solana wallet adapter and encountering an issue with automatically filling in the user's wallet address into an input field upon connecting their Phantom ...
Yazılım Destek's user avatar
0 votes
0 answers
46 views

Dioxus and Rust

I like how Solana uses React and other popular libraries/frameworks for the front end, but I would prefer the whole project to be in Rust (WASM). Is there a way I can integrate Solana-wallet for ...
mukesh kumar's user avatar
1 vote
1 answer
112 views

mpl-token-metadata is breaks The React app

When I added the following line to my project, I saw that it crashed and React.js did not build the page. import * as mpl from "@metaplex-foundation/mpl-token-metadata"; Edit: I found some ...
Berkeley Cinar's user avatar
2 votes
1 answer
329 views

Cannot use solana TS packages on CommonJS module

I've been trying to use Solana wallet adapters on my NextJS-TypeScript-based project with no luck. I can run it on the development, but I cannot build it for production. This is what I got when I run ...
Seto's user avatar
  • 131
0 votes
2 answers
165 views

How to Transfer Sol from External Wallet to Connected Wallet in React

I hope you're doing well. I'm currently working on a React app where users can withdraw rewards to their connected wallet. I want to ensure the security of the process and avoid exposing the private ...
Aliyu Kamilu's user avatar
0 votes
0 answers
87 views

Vite + React + Wallet Adapter

Trying to use the simplest example, getting react-dom.development.js:22839 Uncaught TypeError: off is not a function error. Below the code, error and vite.config.ts. import './App.css' import {Wheel} ...
Ohad Dahan's user avatar
0 votes
1 answer
324 views

WalletConnectionError: Unexpected error at StandardWalletAdapter._StandardWalletAdapter_connect

I am creating an app where I need to connect my wallet with Phantom for Solana. Here is the public repo link for the code where I am getting this (WalletConnectionError: Unexpected error at ...
Divyansh Ch's user avatar
0 votes
2 answers
134 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
  • 21
1 vote
1 answer
127 views

Why does my react web app break on mobile when trying to sign an off-chain message

The user journey is as follows: user lands on my react website user connects their wallet user is then prompted to "Sign this message for authentication: " user signs the message and sends ...
Josip Volarević's user avatar
1 vote
1 answer
139 views

Uncaught ReferenceError: process is not defined at node_modules/@solana/web3.js/lib/index.browser.esm.js

i'm using react, vite, @solana/wallet-adapter-wallets to connect phantom wallet but i stuck with this error: Help me, thank you.
trungbaotran1701's user avatar
2 votes
2 answers
61 views

How to flag inefficient funds Spl-tokens candy machine v3 metaplex js

I’m using react typescript, not next js, to make a candy machine v3 minting dapp using metaplex js. The mint is paid in Spl-token instead of Sol. How do you check and flag if user does not have enough ...
Miles Donald's user avatar
1 vote
1 answer
71 views

How to mint audio NFT

I want to mint audio and image nft at the same time. Using Web3.js and Arweave. I am uploading audio and image to arweave and then nft metadata with those links for audio and image. It is successful. ...
Nitsa's user avatar
  • 11
1 vote
0 answers
172 views

Anchor Error: InstructionDidNotDeserialize

I was following this tutorial: "Build a TikTok Web 3.0 Blockchain App with Solana" and got around the 2:50:00 timestamp when I tried adding a TikTok, and it gave me this error: Then I ...
rust duck's user avatar
4 votes
1 answer
176 views

How to bring up the wallet multi adapter select screen manually in a react app

I've got a unity game that has a 'connect wallet' button within it. In my react app I am listening for that being clicked, and what I would like to do is then pop up the standard multi wallet connect ...
daoplays's user avatar
  • 577
2 votes
1 answer
236 views

Transaction is not getting signed while using glow wallet from solana-wallet-adapters

Signing using glow wallet is not working with @solana/wallet-adapter-react , I am getting the signature as 11111111111111111111111111111111111111. import { useWallet } from '@solana/wallet-adapter-...
mohan A's user avatar
  • 113
3 votes
1 answer
111 views

I need help with changing the contents of a page once a wallet has been connected

Im currently building a project using Create React App with Typescript, web3.js and ChakraUI. I've set up the 'connect to wallet' button using the Solana Wallet Adapter, and the wallet stays connected ...
Ryan Chipwanya's user avatar
4 votes
4 answers
958 views

Get NFTs by collection address and owner

I'm trying to get all the NFTs in a collection that a wallet owns, but I only achieved get all the NFTs of a collection, or all the NFTs of a wallet (multi collections). import { useConnection, ...
Kevin Fiorentino's user avatar
3 votes
2 answers
735 views

How to use the wallet standard?

I am switching my app from wallet-adapter to wallet-standard. Based on my reading, the wallets that support wallet-standard will be automatically detected. So I pass an empty array to the wallets ...
sohrab's user avatar
  • 1,741
3 votes
1 answer
520 views

How can I create a transaction that creates an NFT when signed by the user using Metaplex?

I made TypeScript code where I could make an NFT using an image-link as the metadata (taking help from the Solana Stack Exchange site). Now. When I tried to implement it in my frontend, I was getting ...
harry's user avatar
  • 63
1 vote
1 answer
72 views

Keeping your personal rpc endpoint address private in a react front end hosted by Netlify

a somewhat specific question here but maybe someone has the same set up as me.. I have a javascript app that is hosted on Netlify, that interacts with the solana mainnet. I've recently discovered the ...
daoplays's user avatar
  • 577
5 votes
2 answers
2k views

Phantom wallet error - Transaction expired

I'm trying to submit a transaction on my app, which works with different wallets such as Solflare, but if I try to use Phantom I always get the error message: You waited too long to approve the ...
pepeIKO's user avatar
  • 394
1 vote
0 answers
42 views

CreateListingRequiresSignerError [MetaplexError]: AuctionHouse > Create Listing Requires Signer [closed]

I create a list, but when passing and creating a list, an error comes out: CreateListingRequiresSignerError [MetaplexError]: AuctionHouse > Create Listing Requires Signer Source: Plugin > ...
Леонид's user avatar
2 votes
1 answer
98 views

Solana wallet adapter issues [closed]

I found this very annoying with solana wallet adapter issue with webpack 5 and react scripts version > 5 A smooth solution is to clone this repo and use create-react-app-started which is inside ...
Nagaprasad Vr's user avatar
2 votes
1 answer
60 views

Conflicting package versions when installing @solana packages

I am building a React-based app that uses many dependencies and I am running into a problem with @metaplex-foundation/js and @solana/spl-token in particular. I want to use the newest versions of both ...
pepeIKO's user avatar
  • 394
2 votes
0 answers
190 views

WalletMultiButton in react/typescript application does not seem to be functioning as a button

I have followed along with a few tutorials at this point, but I pulled code directly from the following website: https://www.0xdev.co/how-to-connect-to-a-solana-wallet-to-your-react-app/ After ...
Lexi's user avatar
  • 21
2 votes
2 answers
362 views

getOrCreateAssociatedTokenAccount() throws TokenAccountNotFoundError

I am trying to figure out why createAssociatedAccount does not work. This is the code: const SendTransaction = ({ children }) => { const { connection } = useConnection(); const { publicKey, ...
Michael's user avatar
  • 308
0 votes
1 answer
48 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
0 votes
2 answers
249 views

Solflare web wallet

GM everyone, Very specific question here ⁉️ Is there any way to connect to solflare web wallet directly, from a program point of view ? When I try to connect to solflare wallet, I have a pop-up asking ...
Flo's user avatar
  • 53
3 votes
1 answer
156 views

Disconnect and Connect hook for WalletConnectButton

i am using the WalletConnectButton from @solana/wallet-adapter-react-ui in my React app. I want to execute additional logic when the user connects and disconnects their wallet. Is there a way to do ...
s0lana's user avatar
  • 33
0 votes
2 answers
271 views

Solana Package breaking React App with TypeError

I am deploying a react app that uses some Solana packages and the app is breaking with the following type error: Uncaught TypeError: Cannot convert a BigInt value to a number at Math.pow (<...
Jack Bloomfeld's user avatar
0 votes
1 answer
82 views

How do I alter the css on the solana react module? (with typescript & tailwind)

I am creating a web application and am working to add the solana wallet button using @solana/wallet-adapter. I have gotten the button to work but it wont accept custom css. Does anyone know how to do ...
user2017's user avatar
3 votes
2 answers
595 views

Can I use @solana/wallet-adapter with react JS?

I create a new React JS (npx create-react-app) I install the dependencies to connect a Wallet to my application: "@project-serum/anchor": "^0.17.0", "@solana/spl-token&...
Bruno Raphael Rocha's user avatar
1 vote
1 answer
678 views

How do I use "onAccountChange" to subscribe to a Solana web socket?

const [reloadMessageList, setReloadMessageList] = useState(false); useEffect(() => { fetchChatMessages().then(() => {}); }, [reloadMessageList]); const connection = new Connection(...
user2892730's user avatar
4 votes
2 answers
438 views

React Native build error when installing @solana/wallet-adapter "Module parse failed"

I recently installed the @solana packages in order to use the Solana Wallet Adapter but am now running into build errors. The packages I installed using npm are @solana/wallet-adapter-base ^0.9.16 @...
cerritosMonkey's user avatar
0 votes
1 answer
32 views

How to create custom UI controls for metaplex

I'm having difficulty getting WalletMultiButton and WalletDisconnectButton exactly the way I want it. Is it possible to create my own buttons? This is for React
David Choi's user avatar
1 vote
2 answers
141 views

Generate keypair based on string longer than 32 bytes

It seems that the function to create a new keypair (https://solana-labs.github.io/solana-web3.js/classes/Keypair.html#fromSeed) can only take an input string of 32 bytes. This makes sense, but is ...
Nelis.sol's user avatar
  • 115
2 votes
1 answer
78 views

What is the best way to manage private routes with solana-wallet-adapter?

Currently, I am using a combination of local storage and public key to managing the private-public route. But this approach fails when user decides to revoke access to this application const ...
dtandon's user avatar
  • 48
0 votes
2 answers
292 views

How to mint an existing spl token with React?

I'm building a platform where users play games and receive tokens. Once user have some tokens I'd like to have a "claim" button to transfer (or should I say mint?) these tokens to user's ...
Zjeed's user avatar
  • 53
3 votes
1 answer
61 views

Solana Package Breaking React App UX

I am adding quite a few solana related packages to an existing React-App I've been building and it seems one of the packages has a dependency that's breaking my UX. Anyone seen this error? It seems ...
Jack Bloomfeld's user avatar
0 votes
1 answer
625 views

Wallet Adapter - WalletNotSelectedError while trying to connect wallet to dApp

I'm trying to connect the user wallet to my dApp programmatically. That is, I created my own "connect wallet" button and when clicked it should execute the connect function that wallet-...
Ricardo Passos's user avatar
1 vote
1 answer
155 views

How to immediately get NFT metadata after mint using candy machine v2?

Using Candy Machine v2, Candy Machine UI and metaplex-foundation/js. Following https://solanacookbook.com/references/nfts.html#how-to-get-nft-metadata as my basis, I am trying to get the metadata of ...
Matthew Kerr's user avatar