Questions tagged [solana-wallet-adapter]
The solana-wallet-adapter tag has no usage guidance.
115
questions
1
vote
1
answer
15
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.
...
0
votes
1
answer
14
views
Minimum context slot has not been reached when trying to send a transaction
I'm trying to submit a transaction from a frontend application (React, @solana/web3.js), but every now and then when I try to submit a transaction, it fails with this error message:
err: ...
0
votes
0
answers
21
views
Using the React MobileWalletAdapter to sign transactions with wallet apps
Recent releases of coral's React wallet adapter component allow mobile browsers like Firefox to connect a wallet through an app like Solflare. However, when the dapp code tries to sign a transaction, ...
2
votes
2
answers
57
views
How do I prevent it from simulating the process in Solana
I am using solana and phantom in an application I made with React. how can I turn off simulation here.
if (!publicKey) throw new WalletNotConnectedError();
const balance = await props....
2
votes
0
answers
39
views
using anchor programs in solana mobile stack
I’m i am new to Solana ecosystem and having a problem with SMS. I am trying to use anchor methods inside example-react-native-app . i am not able to find any documentations on how to interact with ...
0
votes
0
answers
13
views
Wallet adapter mobile returns WalletNotSelectedError while connect phantom on mobile device
I develop dapp with react native webview.
here is my webview code
import MetaMaskSDK from "@metamask/sdk";
import {
SolanaMobileWalletAdapter,
SolanaMobileWalletAdapterWalletName,
} from ...
0
votes
0
answers
24
views
Uncaught (in promise) WalletNotSelectedError in @solana/wallet-adapter
I use @solana/wallet-adapter for connect with phantom wallet.
I copied docs from @solana/wallet-adapter(https://github.com/solana-labs/wallet-adapter/blob/master/packages/starter/react-ui-starter/src/...
2
votes
1
answer
145
views
How to get USDC balance in a Phantom Wallet?
I have some code in reactjs which gets the sol balance from a Phantom wallet (Content Functional Component), how can this be changed to get the USDC balance in the same wallet? Here is the code ...
1
vote
1
answer
67
views
How to get balance using wallet adapters and connections?
I have taken the standard code from Solana for the wallet-adapter implementation which works to connect to the wallet. But I cannot get the balance to work. I tried connection.getBalance() but the ...
1
vote
0
answers
29
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-...
2
votes
0
answers
35
views
Phantom transaction expired error on using durable nonce
phantom shows transaction expired error when using durable nonces . Looks like phantom isnt recognising the durable nonce in the recent blockhash and instead considering it as an old blockhash, ...
2
votes
1
answer
283
views
Signature verification failed
I am trying to create a sign in transaction using the following code (using react wallet adapter):
const tx = new Transaction().add(
// create nonce account
SystemProgram....
2
votes
1
answer
145
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-...
3
votes
2
answers
47
views
How to check what network your wallet is on, ReactJs
I am using @solana/wallet-adapter-react
How can I check what network I am on? because I want to show an alert to users that they are on devnet and should switch to mainnet
1
vote
0
answers
51
views
Mobile Wallet Adapter - failed to send transaction: Transaction signature verification failure
Describe the bug
Mobile Wallet Adapter transaction error.
Expected behavior
failed to send transaction: Transaction signature verification failure
OS: Android 13
Browser Chrome Mobile 109.0
...
1
vote
1
answer
82
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 ...
3
votes
1
answer
42
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 ...
0
votes
0
answers
17
views
Solana Phantom wallet doesnt work in iframes. is there anything alternative solution?
I am trying to use the Solana Phantom wallet in an iframe, but I am encountering issues because the Solana Phantom wallet is not designed to work within an iframe. Are there any alternative solutions ...
1
vote
1
answer
17
views
How to retrieve a FileSystem Wallet in a .ts file
I am new to learning Solana development. Is there any way to retrieve the keypair from a Filesystem path? I am doing a tutorial and I want to use the same keypair to sign transactions, instead of ...
2
votes
2
answers
49
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 ...
2
votes
1
answer
46
views
Sending USDC dev token not working until recepient wallet has >0 value of said token
I am trying to send usdc dev token using code to a wallet address but it kept on showing "Unable to simulate. Make sure you trust this website since approving can lead to loss of funds."
And ...
0
votes
1
answer
37
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 ...
0
votes
1
answer
13
views
solana wallet adapter making ~30 getBlockHeight calls
I'm using the solana wallet adapter for React, as well as a quicknode free rpc, on mainnet.
//send total trasnaction
const {
context: { slot: minContextSlot },
value: { blockhash, ...
0
votes
1
answer
68
views
Sending SPL token with NextJS/ReactJS and @solana/wallet-adapter-react
Does anyone have a boilerplate / example of sending a SPL token with @solana/wallet-adapter-react? Thanks in advance!
2
votes
2
answers
129
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 ...
1
vote
1
answer
26
views
No mobile support with svelte-on-solana/wallet-adapter should I switch?
I'm currently working on a website in Svelte, I just spent 1 day adding mobile support for the website. The only wallet adapter for Solana for Svelte currently is svelte-on-solana/wallet-adapter. ...
1
vote
1
answer
82
views
Connect Phantom Wallet on Page Load with solana-wallet-adaper
I am using @solana/wallet-adapter with Next js
And on a particular wallet, I need the autoConnect on page load.
I would've gone with window.solana.connect() but it doesn't detect when the user ...
6
votes
3
answers
238
views
Partial-Sign Transaction from Front-end
Is it anyhow possible to apartial sign a transaction from client side and send it back to server side for final sign and sending to blockchain?
3
votes
0
answers
103
views
Versioned Transaction can't sign or serialize
I'm trying to sign a VersionedTransaction using Solana Wallet Adapter and getting
TypeError: Blob.encode[data] requires (length 40) Uint8Array as src
My code:
const tx = new ...
2
votes
0
answers
30
views
Is there a way to know, in web3 js, if the connected wallet is using a hardware wallet?
Title says it all, want to know if user signs with hot wallet or ledger.
0
votes
0
answers
37
views
Use Solana Wallet Adapter with a Browser Extension
I'm trying to build a browser extension using React.
I want to let user connect to their wallet like a regular website dApp using solana-wallet-adapter.
It works well when I'm running my browser ...
2
votes
1
answer
110
views
How to initiate connect wallet on phantom mobile app
This is a video of how it currently behaves
import { useMemo } from "react";
import {
ConnectionProvider,
WalletProvider,
} from "@solana/wallet-adapter-react";
import { ...
1
vote
0
answers
33
views
I am getting the error Cannot resolve @wallet-standard/app
I am having issues compiling my code. I keep getting the error that @wallet-standard/app cant be resolved in \node_modules\@solana\wallet-standard-wallet-adapter-base\lib\esm. How can I resolve this ...
1
vote
2
answers
306
views
WalletSendTransactionError: failed to send transaction: Transaction simulation failed: Blockhash not found
When I am trying to send SOL using sendTransaction function it gives me below error
WalletSendTransactionError: failed to send transaction: Transaction simulation failed: Blockhash not found
Code:
...
1
vote
0
answers
12
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 ...
2
votes
1
answer
125
views
WalletSignTransactionError: t.serialize is not a function
There is a transaction which needs to signed by both the sender and the receiver because the receiver is the feePayer in this case (Unstaking function). The transaction is built on the backend and ...
1
vote
0
answers
7
views
is it possible to import libraries in injected.js file for wallet standard?
I am implementing solana wallet standard for my solana wallet. Is it possible to import libraries in injected.js file, which will be injected into the window.
3
votes
2
answers
331
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 ...
0
votes
0
answers
7
views
Can not communicate between inject scrypt & content scrypt for solana wallet standard
I am using custom events and EventListners for communication.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/runtime/sendMessage
https://developer.mozilla.org/en-US/docs/...
3
votes
2
answers
34
views
Is there test example for solana wallet-standard?
Is there test example for solana wallet-standard?
The example I have found seems to be the old one?
This demo seems to be the latest one, where can I find source code for the same?
I am integrating ...
2
votes
1
answer
156
views
How do I transfer spl token using web3 and wallet adapter through only pubKey of sender
I want to transfer the spl-token using solana web3 and a wallet adapter (phantom) having only the public key of the sender
3
votes
2
answers
232
views
How to sign message with Ledger (Phantom extension)? Or alternative solution?
Signing message to prove the ownership of an address is a common and 0 cost solution among many apps. Most of wallet extensions support it with a provided function commonly called signMessage.
However,...
0
votes
1
answer
19
views
is there any one wallet that can hold both Ethereum and solana,
I want to interact with both ethereum and solana blockchain in my web application. Is there any one wallet that works for both dapps and is supported by a library like wallet adapter
1
vote
1
answer
105
views
Creating nonce account as a durable transaction
Is there a way to create a nonce account as a durable transaction? The use case is for fireblocks users who might timeout on conventional transactions, so we would like to use durable transactions. ...
2
votes
1
answer
38
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 ...
4
votes
1
answer
132
views
Phantom mobile app fails silently when interacting with new Mobile Wallet Adapter?
I upgraded to latest version of https://github.com/solana-labs/wallet-adapter in order to use the Mobile Wallet Adapter in Android devices. AS the time of writing this, the only wallets that have ...
2
votes
1
answer
1k
views
Error: Hydration failed because the initial UI does not match what was rendered on the server | Using solana wallet adapter
when I try and use the Solana front-end wallet adapter and add it to my next project, I keep getting the following error until I change something on the UI.
Error: Hydration failed because the initial ...
1
vote
1
answer
148
views
Calling getOrCreateAssociatedTokenAccount throws a TokenAccountNotFoundError
I'm working on a React app and want to send SPL tokens. I use the @solana/spl-token.
When I call getOrCreateAssociatedTokenAccount it throws a TokenAccountNotFoundError unless a token account already ...
2
votes
1
answer
176
views
How to change wallet-adapter-react-ui WalletBultiButton styling
This is how the current multi-button looks like on my page
however I want to override not just the styling, but also change the text and or the make the button an image. Something like this:
2
votes
2
answers
215
views
Is there a disconnect method for custom wallet buttons?
Using the Wallet Adapter package to add a custom connect/disconnect button and having some issues finding a way to disconnect a wallet. Connecting works find with useWalletModal() but can't seem to ...