Questions tagged [phantom-wallet]
28 questions
7
votes
3 answers
Solana - How to get the balance from my Phantom wallet?
I'm working on a web app that can connect to Phantom Wallet. I've established the connection and have successfully retrieved the wallet's public key. The problem is, I can't seem to find any solution to get the account balance.
For reference, I…

Afa12
- 73
- 1
- 4
6
votes
2 answers
how to verify the signature of a message in phantom solana?
I am trying to authenticate phantom wallet by signing it with a message I used below code to sign the message and it returns me a signature how can I verify that signature in the backend.
const encodedMessage = new TextEncoder().encode("Message…

SUMANTH ALE
- 69
- 1
- 3
4
votes
1 answer
Debugging "Transaction simulation failed" when sending program instruction (Solana Solidity)
When attempting to make a call to a program compiled with @solana/solidity, I'm getting the following error:
Transaction simulation failed: Error processing Instruction 0: Program failed to complete
Program…

Robert May
- 799
- 6
- 13
4
votes
1 answer
Is there a way to connect to Phantom wallet while web scraping with JavaScript and Puppeteer?
When working with interactive window, is there a way to connect to crypto wallet like Phantom (Solana blockchain is needed)? I tried to find a button, click "connect wallet", but the chrome extension does not pop-up in an interactive window as it…

Aliya Davletshina
- 101
- 6
4
votes
1 answer
Uncaught (in promise) Error: Transaction fee payer required
I get this error when I try to execute this using phantom wallet and react app
const transferTransaction = new Transaction()
.add(SystemProgram.transfer({
fromPubkey: alice.publicKey,
toPubkey: feePayer.publicKey,
lamports:…

Amir Alam
- 155
- 1
- 12
3
votes
0 answers
proper way to call a program method on Solana from client, connected to wallet
I need to call something like this:
const tx = await program.methods.list(price, expiryTime).accounts(dataToSend).signers([wallet]).rpc()
and I don't know what to put in the signers array, cause it needs a signer and signer needs secret key, but I…

Mohsen Parvar
- 176
- 7
3
votes
2 answers
Uncaught (in promise) ReferenceError: Buffer is not defined. Using Phantom Wallet, Solana and React to make a transaction
I created a simple CRA app to figure out how to use the Phantom wallet to make Solana transactions(I still don't know If that is even possible). I referenced two Stackoverflow questions source and source and came up with a somewhat working code as…

Ahmad aziz
- 33
- 3
2
votes
1 answer
What is the algorithm Phantom Wallet (Solana) uses to sign messages?
I am trying to understand what happens under the hood when we call window.solana.signMessage.

Dheeraj Pb
- 75
- 6
1
vote
1 answer
Phantom wallet Integration with React Native
Is there any tutorials out there that will show how to integrate Phantom Wallet to React Native. I search it but it always shows the Phantom wallet to React App only. I also look on the documentation on Phantom wallet but there is no clear…

Drew Hilario
- 11
- 2
1
vote
1 answer
solana-web3.js Invalid param: unrecognized Token program id
I am trying to get all NFT's from a solana wallet. I am using Connection.getTokenAccountsByOwner method in the solana-web3.js API.
Error reads:
Error: failed to get token accounts owned by account : Invalid param: unrecognized Token…

Andrew Melbourne
- 82
- 1
- 8
1
vote
0 answers
Signature verification failed When transferring spl-token to user connected phantom wallet
bs58.decode(
"2YQDdnfxiHPKu9GypLX1yXaQTQojvDSPgFkDxrU********************************************"
)
const mintPubkey =
"A8SJfwzKJAaMrY6Lb*************************";
const getProvider = async () => {
// opens…

Amir Alam
- 155
- 1
- 12
1
vote
1 answer
How to transfer NFT spl-token using phantom wallet and solana web3js
I can transfer the Solana from one account to another account using phantom wallet using this code
const transferTransaction = new Transaction()
.add(SystemProgram.transfer({
fromPubkey: alice.publicKey,
toPubkey: feePayer.publicKey,
…

Amir Alam
- 155
- 1
- 12
0
votes
1 answer
What standards does Phantom Wallet use for mnemonic to keypair generation?
I'm currently working on a project involving the Solana blockchain and I am trying to understand the standards that the Phantom Wallet uses to generate a keypair from a mnemonic phrase.
In my project, I've been using the BIP39 standard to convert…

azuldev
- 570
- 6
- 10
0
votes
0 answers
Nft is not minted using metaplex and arweave metadata
That's my first time creating an nft minting dapp and it's not working.
I am using web3.js, connected to phantom wallet on devnet, got some sols, and trying to mint nft. For now minting arweave metadata from some tutorial. I would like to keep the…

Nitsa
- 53
- 8
0
votes
0 answers
Even if app is installed, Deeplink go to install page
When I use deeplink in mobile chrome broswer,
Even though there's a phantom app installed on my mobile,
Occasionally, it will be taken to the app installation page.
how to fix it?
code
function build_url(path: string, params: URLSearchParams) {
…

DoHan_Kim
- 57
- 1
- 8