Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 75
5 votes
Accepted

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

The signTransaction API does not, and never did guarantee that the transaction will be signed in-place. You must use its return value. const signedTransaction = signTransaction(transaction); const tra …
steveluscher's user avatar
  • 3,163
4 votes

Signature verification failed with Anchor - Solana

Anchor's Wallet interface looks like this: export interface Wallet { signTransaction<T extends Transaction | VersionedTransaction>( tx: T ): Promise<T>; /* ... */ } That means that the sign …
steveluscher's user avatar
  • 3,163
3 votes
Accepted

Understanding Solana Wallet connection to Wallet Adapter

Yes. Anything which has access to the JavaScript context in which the dApp runs can implement the Wallet Standard and register as a @solana/wallet-adapter compatible wallet. See solanaWallet.ts for an …
steveluscher's user avatar
  • 3,163
3 votes
Accepted

Solana-wallet-adapter is not working properly in react app

The topmost error ‘You have tried to read wallets on a WalletContext without providing one’ is the error to heed. Make sure to include a <WalletProvider> at least one component above the one in which …
steveluscher's user avatar
  • 3,163
3 votes

sendAndConfirmTransaction returns Cannot read properties of undefined (reading 'toString')

Presuming that useWallet() is from @solana/wallet-adapter, its return value is not a Signer. The return value of useWallet is a WalletContextState. WalletContextState does not expose the private key y …
steveluscher's user avatar
  • 3,163
2 votes

How to get Solana address from wallet adapter

The terms ‘public key’ and ‘address’ are interchangeable. The public key of a wallet is the wallet’s address. At a fundamental level, the address is a 256-bit number. In practice you see addresses enc …
steveluscher's user avatar
  • 3,163
2 votes
Accepted

Connecting to a Ledger wallet with Web3.js

Signing messages in this way is presently not supported. Follow along here: https://github.com/solana-labs/solana/issues/21366
steveluscher's user avatar
  • 3,163
2 votes
Accepted

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

This is the method signature for confirmTransaction(): export type BlockhashWithExpiryBlockHeight = Readonly<{ blockhash: Blockhash; lastValidBlockHeight: number; }>; export type BlockheightBased …
steveluscher's user avatar
  • 3,163
2 votes

Signature Mint on Solana for update metadata

To ensure that the owner of a particular NFT is the one interacting with your frontend you need to complete these steps: Learn their public key Assert that the owner of the NFT matches that public ke …
steveluscher's user avatar
  • 3,163
1 vote

(SPL-Token) Solana Create Token Account with Wallet Adapter | React, JS

The return type of getMint is a Mint. The third parameter of getOrCreateAssociatedTokenAccount is a PublicKey. Change your invocation to this: const mint = await getMint(connection, tokenContract); co …
steveluscher's user avatar
  • 3,163
1 vote
Accepted

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

There is no good way to manage this at present. Because the authorizedness of an app is not synchronized with your web frontend, let alone your web server, it’s impossible to know on initial load whet …
steveluscher's user avatar
  • 3,163
1 vote

How to dynamically import clusterApiUrl in next js

You can use the same principle to import external libraries using import() at the point where that module is needed. Architect your code such that clusterApiUrl is only needed in a codepath that's ina …
steveluscher's user avatar
  • 3,163