Questions tagged [solana-wallet-adapter]
The solana-wallet-adapter tag has no usage guidance.
147
questions
0
votes
0
answers
19
views
How can I sign a Solana transaction on the frontend with data coming from the backend?
async function getTransaction(){
$.ajax({
url: 'http://localhost:8080/gettransaction',
type: 'GET',
dataType: 'json',
success: async function(data) {
...
0
votes
0
answers
15
views
web3.auth integration to Login page with Solana wallet
I'm making a login page for my dapp, and I think I will build on Solana chain.
And I wonder how I can add web3.auth in the page.
I'm using react-native, not sure what to do with this step web3.auth ...
0
votes
1
answer
27
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 ...
0
votes
1
answer
28
views
LEDGER: How to sign all transaction with one approval?
Working on an idle NFT game and I want Ledger users to be able to send transactions only in one approval through their Ledger.
There are multiple transactions. When using a wallet extension ...
0
votes
1
answer
55
views
Transaction failing while calling a Solana program with PDA
I'm calling a function of anchor_movie_review_program program on devnet CLA5Pk8tpcsA3RPmCYPaRNBdU6xBknRnqshsT1bKT7if.
I cloned the following GitHub https://github.com/Unboxed-Software/anchor-movie-...
0
votes
1
answer
43
views
Account change listener is not working for phantom wallet
I am using this code given below in my react application to listen an account change event but facing issue as no response or error i am getting on changing account form phantom wallet .i have ...
0
votes
0
answers
25
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} ...
0
votes
1
answer
41
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 ...
0
votes
0
answers
60
views
How do I sign and send a versioned transaction using the wallet adapter
I have a versioned Transaction that I want to sign with my wallet and send.
Trying to use signTransaction and sendTransaction are giving me the following errors
app-index.js:32 ...
0
votes
1
answer
36
views
How do I keep my wallet connected and refresh the page without reconnecting?
https://solana-labs.github.io/wallet-adapter/example/ How do I keep my wallet connected and refresh the page without reconnecting?
0
votes
0
answers
60
views
custom program error: 0x64:
I'm facing an issue while breeding the NFTs. The first test case for initializing the parent and the second test case for computing the child run successfully. This means that the child generation is ...
1
vote
2
answers
30
views
Property 'run' does not exist on type 'Promise<FindNftsByOwnerOutput>'
I want to get Nft data from metaplex but i wanna know what does .run() work here and why .run() method does not exist here
const nfts = await metaplex.nfts().findAllByOwner({owner: args.publicKey,})....
0
votes
0
answers
222
views
Failed to compile @noble/curves/abstract/weierstrass on client side
I am trying to use the latest version of the @solana/web3.js, but I am reaching a compiling error on my client side inside of my create-react-app. I've narrowed down the issue, and I think it may be ...
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 ...
0
votes
2
answers
45
views
preview/simulate transactions
When building an app, which factors play into whether or not a wallet will show expected token changes? Can those factors be controlled?
client wallet adapter versions?
program complexity?
number of ...
0
votes
1
answer
41
views
Error: failed to send transaction: Transaction simulation failed: Attempt to load a program that does not exist
I was working on this repository to breed NFTs on Solana. However, I encountered an error while attempting to mint a new generation. The first two test cases, "Initialize" and "Compute,&...
1
vote
1
answer
42
views
How to create, sign and send transaction to Magiceden program
I have Magiceden API bearer token and using the buyNow endpoint
Which return Buffer data as in the picture.
I tried to create the Transaction like this:
const transactionME = Transaction.from(Buffer....
1
vote
1
answer
43
views
Decrypting the phantom payload
Here is my issue
Been having issues decrypting the phantom payload that comes after connecting with Phantom.
It keeps returning "data is malformed or invalid"
Tried manual decryption and the ...
2
votes
1
answer
57
views
how to validate an address of solana by using dart?
i need validate solana address for integration in my project
Is there a public API for this?
2
votes
0
answers
27
views
Loan Execution using sharkysdk
I was hoping to get some help here we were able to integrate wallet to our platform and we are close to integrating sharky sdk so users can take loans from us, but we had an error in the last step ...
1
vote
1
answer
194
views
Mint from V3 candy machine using Umi. Throws Anchor error - account not insitialised
I have used the Sugar CLI to upload a test candy machine with just 2 items and the collection data, and then set up a simple mintLimit guard.
Am am able to find the candyMachine and see all of the ...
1
vote
0
answers
29
views
How can an app automatically switch the wallet to the needed network?
When using solana-wallet-adapter, transactions fail if I don't manually switch the wallet currenlty being used to the network selected in the wallet adapter. Is there a way to automatically switch the ...
1
vote
1
answer
49
views
Error while sending an Instruction in Android (Kotlin): Cross-program invocation with unauthorized signer or writable account
I am getting some error while sending a transaction in Android (Kotlin)
Error processing Instruction 0: Cross-program invocation with unauthorized signer or writable account
This is the function ...
2
votes
1
answer
61
views
Integrate solana wallet adapter react ui in angular project
i am still new to solana developpement and i found solana/wallet adapter react ui and i was wondering if there is a tool or documentation on how to implement it on my angular appilication ?
2
votes
1
answer
43
views
Solana Node syncing issue
I have setup a solana node on my ubuntu server , I am using devnet Url in my solana config file , on cli it is showing correct block-height transactions-count and everything is working according to ...
1
vote
0
answers
732
views
IOT token no adding to my Helium wallet when I claim rewards
I'm trying to claim my IOT rewards from my hotspots and when I click on "Claim Rewards" within the helium wallet the rewards message appears to say "Rewards Claimed!" after about a ...
1
vote
2
answers
37
views
How to close token accounts using @solana/spl-token v: "0.3.8" and wallet adapter
I'm trying to close token accounts using the wallet adapter,I'm facing the following issues
const closeAcc = async (tokenpubkey: PublicKey) => {
if (wallet.publicKey) {
let tx = new ...
0
votes
0
answers
46
views
Solana wallets transaction failing in Flutter
I am using solana_wallet_adapter to launch any installed Solana wallet like Solflare & Phantom to approve a transaction to send SOL from the user's account to an address I've given.
Following is ...
1
vote
2
answers
71
views
Understanding Solana Wallet connection to Wallet Adapter
I'm trying to build a dApp embedded wallet that can interface with the Solana Wallet Adapter. I am looking at the Wallet Standard and I'm wondering if this could be used to build a dApp embedded ...
0
votes
1
answer
35
views
How does autoconnect of wallet work?
Does the solana wallet adapter autoconnect require the wallet to have already have been previously connected or will it automatically detect and connect a compatible wallet?
1
vote
1
answer
69
views
Hide other unnecessary wallets from modal (leave only one we need)
Is it possible to leave only one wallet we need in modal from which we choose wallets? Currently it looks like this, but in chrome it still detects and shows other wallets like Phantom and etc.
const ...
0
votes
0
answers
31
views
eWallet.ts:84 You have tried to read "publicKey" on a WalletContext without providing one. Make sure to render a WalletProvider as an ancestor
import React, { FC, useMemo } from 'react';
import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
...
1
vote
2
answers
48
views
Transaction expired
Hello everyone. When I press the send transaction button while on the Phantom devnet network, I can send it to Solana. I get this error when I switch to mainnet and try to send transaction. Is it ...
1
vote
3
answers
189
views
Getting insufficient balance error while trying 'anchor deploy' , but I have enough fund in my wallet. How to solve this?
Deploying workspace: http://localhost:8899
Upgrade authority: /home/dev_roy/.config/solana/id.json
Deploying program "basic-1"...
Program path: /home/dev_roy/User/solana-wallet-setup/anchor/...
0
votes
0
answers
79
views
How to connect phantom wallet to certain site?
Hello how can i connect phantom wallet to certain sites with sol.py? I can't find any help materials to solve my problem when it comes to do it in pyth
3
votes
2
answers
140
views
How do I integrate the Solana wallet adapter into my website?
I am working on a web based game. And I want to connect Solana wallet to my website. How can I integrate Solana wallet adapter to my website. I've read Githubi but I don't understand where to write ...
2
votes
0
answers
101
views
Trying to get latest sugar 2.1.1 version to mint with candy machine ui v3
The candy machine was created using token standard : pnft and guard groups, when minting using the latest sugar alpha version , I can mint from a ui like https://github.com/Solana-Studio/Candy-Machine-...
3
votes
1
answer
137
views
How to sign a message using Baclpack?
I want to sign an arbitrary data (eg. a string message) with Backpack and receive the signature as a result. How can I do it with backpack?
1
vote
0
answers
94
views
WalletSendTransactionError: Blob.encode[recentBlockhash] requires (length 32) Uint8Array as src
I have a code which is on NextsJs React code and runs when I run it with npm run dev,
But when I build it with npm run build followed by pm2 restart rps I get this error:
WalletSendTransactionError: ...
1
vote
1
answer
223
views
Solana private-key to derive the path of BIP-44 standard
Hi all I'm trying to develop my own deterministic key hierarchy with BIP-44 , BIP-39 and BIP-32.
The initial part of the project is done:
I generated the seed phrase thanks to BIP-39;
I created my ...
1
vote
1
answer
44
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.
...
2
votes
1
answer
87
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
39
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, ...
3
votes
2
answers
185
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....
3
votes
0
answers
69
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
34
views
Wallet adapter mobile returns WalletNotSelectedError while connect phantom on mobile device
I develop a dapp with a React native webview.
Here is my webview code:
import MetaMaskSDK from "@metamask/sdk";
import {
SolanaMobileWalletAdapter,
SolanaMobileWalletAdapterWalletName,
} ...
0
votes
0
answers
72
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
429
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
358
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
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-...