Skip to main content

Unanswered Questions

1,975 questions with no upvoted or accepted answers
4 votes
1 answer
107 views

How to parse a transaction in rust using the codama generated client?

I've generated codama TypeScript and Rust clients for a program and TS has functions like identifyCpAmmAccount & identifyCpAmmInstruction that are used to identify and return instrustions. However ...
4 votes
0 answers
139 views

Error while anchor deploy, please someone provide me solution

I am using surfpool 0.10.0 which provided mainnet like environment for testing. versions: solana --version : solana-cli 2.3.8 (src:473089c1; feat:2255652435, client:Agave), rustc --version : rustc 1....
4 votes
1 answer
121 views

Why do Phantom/Brave return an empty `accounts` array with `useWallets` in `@wallet-standard/react`?

When using the useWallets hook from the @wallet-standard/react package, the returned UiWallet for Phantom or Brave always has an empty accounts array. import {useWallets} from "@wallet-standard/...
4 votes
1 answer
233 views

How to do account white listing using merkle tree on solana native rust program? Is it really possible to do whitelist account using merkle on solana?

I did this code But have doubt that it will not work as desired:- use borsh::{BorshDeserialize, BorshSerialize}; use merkletreers::tree::MerkleTree; use merkletreers::utils::hash_it; use ...
4 votes
2 answers
961 views

how to create market id in devnet with js

I was learning solana evm on devnet and I started to code a token with @solana/spl-token library and then I tried to add a liquidity to radiyum and then it asked for openbook market id , I want to ...
4 votes
1 answer
571 views

Is there any functioning AMM on devnet?

I want to swap my devnet SOL for some other devnet token, for example USDC. Is there any functioning AMM on Devnet where this is possible? Preferably one that automatically handles the wrapping on the ...
4 votes
2 answers
228 views

Metaplex JS SDK returning null when jsonLoaded is True

I'm having an issue while trying to get an NFT's JSON data. Regardless of mint address, I keep getting null. (Using @metaplex-foundation/[email protected] on a free QuickNode RPC). I'm trying the following: ...
4 votes
2 answers
135 views

Reveal URL on mint Solana Anchor Lang

I want to hide the minting URL and reveal it later once a user has minted NFTs. let path = "http://abc.com"; let new_uri = format!("http://abc.com/1.json"); invoke( ...
4 votes
1 answer
660 views

anchor build: error: toolchain 'solana' is not installed

I use this command of anchor, but there is some wrong with it: levi@LEVI-104-PC:/opt/solana/youtube-tutorial/mint-nft$ anchor build error: toolchain 'solana' is not installed My specifications: ...
4 votes
1 answer
165 views

Is there a way to destructure a freezeDelegatedNft?

I am looking for a way to destructure a freezeDelegatedNft so I can combine it with another transaction. This is what I have currently: await metaplex.tokens().approveDelegateAuthority({ mintAddress:...
4 votes
1 answer
778 views

Does `jsonParsed` always work for `getTokenAccountsByOwner`?

The docs for the getTokenAccountsByOwner RPC method say: If "jsonParsed" is requested but a parser cannot be found, the field falls back to "base64" encoding. However since we're ...
3 votes
1 answer
65 views

Change transfer fee of spl token -22

Does anyone know, once we have created a spl token 22, set the transfer fee, then how can we change the transfer fee with the help of JS/TS script?
3 votes
1 answer
63 views

Creating Account with payer as PDA address

I'm implementing a transfer hook for a Token-2022 token that needs to initialize and manage state accounts for token holders. The requirements present several challenges: PDA as Payer: Is there a ...
3 votes
1 answer
145 views

What metrics should look when solana agave node starts lagging?

We running several nodes in several data centers and sometimes they lag, but catch up quickly ( in a minute or so ). We have several solana nodes running on agave v 2.0.18 v 2.0.20. in different data ...
3 votes
1 answer
290 views

Agave Node syncing fine with mainnet but RPC at 8899 isn't available

I'm using the config from the agave docs tar jxf solana-release-x86_64-unknown-linux-gnu.tar.bz2 cd solana-release/ export PATH=$PWD/bin:$PATH All initial port checks come in fine [2024-12-17T08:18:...

15 30 50 per page
1
2 3 4 5
132