365 questions
-2
votes
1
answer
74
views
# Phantom Wallet signMessage() Always Returns -32603 "Unexpected error" on Solana
Problem Description
I'm implementing wallet authentication in a Next.js/Solana application using direct Phantom wallet integration. The wallet connects successfully, but signMessage() consistently ...
1
vote
2
answers
200
views
How to subscribe to blocks on Solana
is there a chance to use blockSubscribe method, on public solana RPC, because it returns, "unknown method", or if I run it locally, it works, but the solana-validator uses too much resources,...
0
votes
1
answer
207
views
How to get mint address of tokens in wallet with solana/web3.js v2
I am able to get the tokens in my wallet but then am not able to derive the mint address from the received data. I want to get the mint address of all tokens in my wallet to then use that with some ...
1
vote
0
answers
88
views
Unable to decode the value of the data field of the instruction in the Solana blockchain transaction
There is such a transaction in the Solana blockchain:
5Tkjtr2SnhaTbchug5TzeBZj6eehjdnDCLm9z6Hb3xFAcVtM6rAv2Ecxtvi6N8RbnfkRuRKR7aJv61RRNSPRxW77
There are instructions in it:
('Instruction Details' =>...
0
votes
0
answers
194
views
raydium sdk V2 Error: fetch vault info error
I am trying to read a pool with sdkV2, and got also a problem.
got error :
@raydium-io/raydium-sdk-v2/src/raydium/liquidity/liquidity.ts:1402
if (vaultItemInfo === null) throw Error("fetch ...
0
votes
1
answer
83
views
Cannot access spl-token account balance for ai16z using @solana.web3js
I I've been able to get token balances for sol and uscd plus tokens like Pyth Network using @solana.web3js. However the same code fails when retrieving the balance for ai16z.
Simplified code looks ...
1
vote
1
answer
195
views
Receiving an error after a toast message, although the transaction is done successfully
We launched a public sale of nfts.
While buying the nfts, the transaction is done successfully and shown on etherscan but after the transaction we got this error message twice only yet.
Error message ...
0
votes
1
answer
189
views
Get only buy transactions of an address in Solana chain
I’m trying to write a script to retrieve buy transactions for a specific address on the Solana blockchain. My goal is to identify the first 5 buy transactions, starting from the oldest to the newest. ...
1
vote
1
answer
257
views
TokenAccountNotFoundError Solana
I'm trying to transfer a token from a backend wallet to another address, but I keep encountering the error: TokenAccountNotFoundError. I'm new to Solana and have been stuck on this issue for an entire ...
0
votes
0
answers
48
views
how to signer create_mint when the mint is publickey
When the mint1 is created as the code:
mint1 = await createMint(
provider.connection,
payer,
payer.publicKey, // 有增发权限的账户
null,
...
0
votes
0
answers
61
views
Trouble with nft_info Account in Solana Anchor Test Code
I’m new to Solana development, and I’m having trouble writing test code for my program. Specifically, I can’t seem to properly initialize and use the nft_info account.
Here’s part of my Rust code:
#[...
0
votes
1
answer
63
views
createMint function calling without exposing keypair on client side
I want a solution to create a spl-token from frontend side as I saw many solutions with keypair exposing on frontend side or generating random keypair but when I switch to phantom wallet connection ...
0
votes
3
answers
1k
views
Solana Anchor Program: "Cannot read properties of undefined (reading 'encode')"
I'm trying to call a simple hello_world method from my Solana Anchor program, but I keep getting this error:
TypeError: Cannot read properties of undefined (reading 'encode')
at .../node_modules/@...
2
votes
1
answer
2k
views
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path
I am getting this error when installing Solana.
I run this line in Ubuntu:
cargo install --git https://github.com/coral-xyz/anchor avm --force
The error I get:
To reuse those artifacts with a future ...
1
vote
1
answer
339
views
What is the "instruction index" referring to during this Solana transfer snippet?
See the Solana doc on manually building an SOL transfer instruction: https://solana.com/docs/core/transactions#manual-sol-transfer
It shows the following snippet:
// Define the amount to transfer
...
0
votes
1
answer
349
views
Solana RPC Endpoint (metaplex.devnet.rpcpool.com) returns 403 Forbidden - Alternative solutions?
I'm developing an application using Solana's devnet and trying to connect to the RPC endpoint https://metaplex.devnet.rpcpool.com/. However, I'm consistently getting a 403 Forbidden error.
Here are ...
0
votes
0
answers
5k
views
Error: "Could not find token account XXXXXXXXXXXXXXXXXXXX" after using spl-token create-account
After following these steps, I receive the error "Error: "Could not find token account ___" when trying to mint or transfer tokens to a recipient.
Creating keypairs:
solana-keygen new ...
0
votes
1
answer
233
views
Having issues with solana cli token distribution, recieving error PickleDbError(Error { msg: EOF while parsing a value })
enter image description hereHi im recieving the error above in the title while running solana-tokens distribute-tokens on devnet. im following the instructions correctly. Below im adding an image of ...
1
vote
1
answer
916
views
Solana Inner Instruction & Instruction Relationship
I am a beginner in Solana development. I just have a question regarding instruction and inner instruction.
https://solscan.io/tx/...
0
votes
0
answers
432
views
Be prompted to sign only once to run multiple solana transactions?
I'm building a personal web project on Solana and was wondering if there was a way to have someone who has connected their wallet to the site sign once to run multiple transactions? I'm trying to make ...
-1
votes
1
answer
276
views
Anchor solana use instruction instead of .rpc
here is my mint method it works as expected but i am getting this dapp could be malicious do not print unless you are certain this is safe If i want this warning to be immediately resolved, i need to ...
0
votes
1
answer
576
views
How to change assigned program id in solana network
I have the issue.
I don't know about the how to change the assigned program id.
Please help me.
I don't know well abut the solana contract.
First, I have to deploy the solana contract.
If you know ...
0
votes
1
answer
674
views
Error while confirm to the transaction in Solflare wallet for devnet
I'm developing a token mint program in the Solana chain using the @solana/spl-token Javascript library.
When I use the Phantom wallet, I'm able to confirm the transaction; But I'm unable to confirm ...
1
vote
0
answers
301
views
TypeError: (0 , codecs_1.getBytesCodec) is not a function at ./node_modules/@solana/spl-token-metadata/lib/cjs/state.js
I'm trying to implement the mint functionality with @metaplex-foundations/js library. Here is the source code.
import {
useConnection,
useWallet,
} from "@solana/wallet-adapter-react";
...
1
vote
0
answers
438
views
How can i get list of tokens inside wallet on Solana network?
I generated this code with Gemini but it doesnt work.
I want get list of tokens in wallet on Solana with their amount, what should i do?
I want python code.
import requests
from solana.rpc.api import ...