Questions tagged [solana-wallet-adapter]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 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-...
  • 51
3 votes
2 answers
26 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
16 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 ...
  • 11
0 votes
0 answers
16 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 ...
  • 1
2 votes
1 answer
17 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
11 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
14 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 ...
  • 59
0 votes
0 answers
20 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
30 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
32 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
12 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
30 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
1 answer
36 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,529
1 vote
1 answer
21 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. ...
  • 31
1 vote
1 answer
36 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 ...
5 votes
3 answers
87 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
63 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
20 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.
  • 73
0 votes
0 answers
23 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
63 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
20 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 ...
  • 23
1 vote
2 answers
141 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
57 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
134 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 ...
  • 158
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
27 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
103 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
  • 313
3 votes
2 answers
125 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,...
  • 125
0 votes
1 answer
15 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
  • 361
1 vote
1 answer
51 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
32 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
85 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 ...
  • 101
1 vote
1 answer
474 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 ...
  • 515
1 vote
1 answer
96 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 ...
  • 21
2 votes
1 answer
90 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:
  • 81
2 votes
2 answers
110 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 ...
1 vote
0 answers
47 views

How to handle errors with WalletMultiButton?

I'm using the walletMultiButton component from "@solana/wallet-adapter-react-ui" and I'm finding it challenging to access error messages when the user rejects request I tried checking with ...
3 votes
1 answer
70 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 (...
2 votes
1 answer
41 views

On mobile browsers how do I properly authorize and sign a message in a single wallet session

I work on a React (Next.js) web project which connects to a NestJS backend. The process of wallet authentication on server is the following: wallet connects to our frontend app frontend sends the ...
1 vote
2 answers
37 views

What's the best way to install solana wallet adapter?

From the solana cookbook (https://solanacookbook.com/getting-started/installation.html#install-web3-js), one is able to install web3.js and Spl token libraries via NPM, but can't do so for wallet ...
1 vote
2 answers
183 views

How to customize dropdown of WalletMultiButton

There is the common wallet adapter component: WalletMultiButton. Does anyone know how I can customize it with more rows, just like Magic Eden: Currently I only have the default rows: Although I was ...
  • 453
1 vote
1 answer
20 views

wallet-adapter/react-ui build with the nextjs-starter app throws a can't find module error

error when using local build of @solana/wallet-adapter-react-ui reproduction steps - git clone https://github.com/solana-labs/wallet-adapter . pnpm i pnpm build in _app.tsx of the nextjs-starter app ...
1 vote
1 answer
50 views

Get feePayer (Signer) from @project-serum/sol-wallet-adapter and use it in @solana/spl-token

I used a package called @project-serum/sol-wallet-adapter and I want to use createMint() and mintTo() functions in @solana/spl-token. The problem is that I can't get the feePayer or the Signer in ...
0 votes
0 answers
50 views

Is it possible to stake spl-token?

I am trying to develop a marketplace where users who have my spl-tokens can stake it and get rewarded. Is it possible in solana? If yes, some references will be highly appreciable.
  • 1
3 votes
1 answer
48 views

How to get Solana address from wallet adapter

I can get public key from wallet adapter, so how to convert it to address in Solana ?
0 votes
0 answers
21 views

Why Magic Eden buy_now with react app fails with Signature verification failed

I'm getting an error while trying to a /buy_now using the Magic Eden API. My app is made in React and I'm using the solana-wallet-adapter so Im limited to using their methods (no ...
2 votes
1 answer
107 views

How to solve Typescript errors TS2307 Cannot find module

I keep getting TS2307 Cannot find module error whenever I run typescript checks on my project. The src/index.ts file has the following imports: import BigNumber from 'bignumber.js'; import {WebBundlr} ...
  • 484
1 vote
0 answers
17 views

WalletMultiButton only establishes a connection to Phantom wallet every other time

I've been following along soldev course and I'm now starting to interact with a browser wallet interact-with-wallets. Problem is whenever I try to connect to a wallet it only connects after two clicks....