Questions tagged [solana-wallet-adapter]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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.
2 votes
2 answers
18 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 ...
  • 138
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
21 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 ...
0 votes
1 answer
35 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 wallet adapter (phantom) having only public key of sender
  • 91
1 vote
2 answers
45 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,...
  • 65
0 votes
1 answer
12 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
22 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
14 views

Solana wallet adapter issues

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
37 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 ...
  • 61
1 vote
1 answer
96 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 ...
  • 431
1 vote
1 answer
44 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 ...
  • 11
1 vote
1 answer
30 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:
  • 41
1 vote
2 answers
42 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 ...
0 votes
0 answers
25 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 ...
2 votes
1 answer
53 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 (...
1 vote
0 answers
25 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 ...
  • 54
1 vote
2 answers
34 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
132 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 ...
  • 361
1 vote
1 answer
19 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
31 views

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

So i use a package called @project-serum/sol-wallet-adapter. And i want to use createMint() and mintTo() functions in @solana/spl-token. Problem is that i can't get the feePayer or the Signer in order ...
0 votes
0 answers
33 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
0 votes
0 answers
18 views

how to get solana adress from wallet adapter

i can get public key from wallet adapter, so how to convert it to adress in solana ?
0 votes
0 answers
17 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 ...
1 vote
1 answer
46 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} ...
  • 372
1 vote
0 answers
16 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....
1 vote
0 answers
22 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() { ...
1 vote
0 answers
21 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 ...
  • 11
0 votes
0 answers
27 views

error when attempting to send USDC transaction on Solana

I am encountering the following error when trying to send a transaction: WalletSendTransactionError: Missing or invalid parameters. at n. (adapter.ts:188:23) at f (regeneratorRuntime.js:86:17) at ...
0 votes
1 answer
46 views

How to connect wallet to the dapp within the iframe?

I need to connect the dapp within the iframe. When I click on the connect wallet, it is not connecting within the iframe. How can I connect the dapp within the iframe ?
  • 91
0 votes
1 answer
25 views

variable of public key isn't updated in useEffect hook

i have cloned the solana dapp-scaffold repo and i am trying to display the pubkey of the user connected with an alternative way, using web3js. When i try to do it the pubkey is initially set to null ...
0 votes
0 answers
17 views

Is there any event which is called while sending the transaction through wallet adapter (phantom)

I have to get the transaction object before executing or sending any transaction dynamically, Can I get this through any event called whenever the sending transaction called by the web3 wallet ...
  • 91
0 votes
1 answer
25 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 ...
  • 25
0 votes
1 answer
38 views

Phantom deep link not openable on a browser

When I try to open a deep link in the browser to be able to sign the transaction with this format: https://phantom.app/ul/v1/signAndSendTransaction, this is the error I get: -32603 Failure to decrypt ...
0 votes
2 answers
40 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 ...
  • 53
1 vote
1 answer
40 views

How to create a TX on the front end (Wallet Adapter) and confirm it on the back end!

Our web app charges users X amount of SPL token. Users sign through their connected wallet. After the tx charges them, a request is sent to the back end where our server changes some metadata on ...
4 votes
1 answer
26 views

How to create a transaction that only shows one transaction approve pop-up to the user?

I want to add two instructions to a single transaction and only show one popup to user then he/she can approve ONLY ONE transaction. Tried with '@solana/web3.js' Transaction but it didn't worked as ...
2 votes
1 answer
26 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 ...
  • 23
1 vote
1 answer
32 views

What is the best way to have user transfer sol to a newly generated wallet without exposing the secret key to the client

I'm building an application where users can create content/articles. When each article/content is created, it will have a new wallet generated and the user will need to transfer some SOL to it when ...
  • 113
0 votes
0 answers
20 views

Solana Sending SPL-Token Transaction

I am trying to send a transaction through a DAPP. I am using solana wallet adapter to connect to my wallet. Once my wallet is connected to my app, here is the method that is called.`` const sendNFTs = ...
1 vote
0 answers
33 views

Signing a Ledger Transaction with python

I keep getting the Error: Invalid Status 6a80, and I have a hard time figuring out why. I am able to collect the publicKeys, but I unfortunately can't get signatures through it. any help will be much ...
0 votes
1 answer
53 views

Create Wallet Injection using solana wallet adapter

Hello i Make my wallet to be recognized by the dapps under the name of phantom. When connect request is send from the dapp i successfully initialize my public key but then dapps freezes. Example with ...
2 votes
1 answer
63 views

How can I send a SPL Token using web3.js, wallet-adapter, and spl-token?

I am trying to create a claiming function for a spl-token. The website currently has the user sign in with wallet-adapter, then they click a button, and it should create a transaction for which they ...
  • 63
0 votes
0 answers
7 views

How to create solana on and offramp? Any resources?

I am trying to build a solana wallet with native fiat support in SE Asia. I am having trouble to understand how solana and fiat interacts with each other. How can I build Solana on and offramp? Any ...
1 vote
1 answer
80 views

signTransaction() wallet adapter

const {signTransaction} = useWallet() const transaction = new Transaction() const tx = .... //arbitrary anchor program method as transaction transaction.add(tx) const signature = signTransaction(...
0 votes
1 answer
49 views

How can I prevent a user with several wallets from performing the same action several times?

I have a little logic problem. On one of my projects, I want to set up a voting system. Only NFT holders can vote. My issue is the following: A person has 5 NFTs, he is the only holder of 5 NFTs so ...
  • 360
1 vote
1 answer
102 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&...
1 vote
1 answer
25 views

Basic question related with "Connection" of @solana/wallet-provider-react

import type { ConnectionConfig } from '@solana/web3.js'; import { Connection }enter preformatted text here from '@solana/web3.js'; import type { FC, ReactNode } from 'react'; import React, { useMemo } ...
0 votes
0 answers
24 views

Signature verification failed with Anchor - Solana

I'm trying to sign a transaction manually with the anchor framework. The following is the normal and currently working method to call the program: await program.value.rpc.sendTweet(topic, content, { ...
5 votes
3 answers
80 views

Error sending transaction to create ATA

I am trying to create ATA of a user using my own account and send custom tokens to that ATA. Using the following code: const recieverATA = await getAssociatedTokenAddress( tokenMintAddress, ...
  • 359