Top new questions this week:
|
I’ve seen on the zz explorer that some guys doing arbitrage, set an amount of fee before executing the tx so that can be prioritized. How do they know how much fees to set? Do they use multiple txs? …
|
I’m using solana-keygen utility to grind for a public key with specific traits. Currently my input was as follows: solana-keygen grind –ends-with I:1 however, I get this error: error: Invalid value &…
|
I’m trying to get all the NFTs in a collection that a wallet owns, but I only achieved get all the NFTs of a collection, or all the NFTs of a wallet (multi collections). import { useConnection, …
|
The transaction instruction length limit is 1232, can it be modified through setComputeUnitLimit? In what scenario is setComputeUnitLimit used?
|
My program uses a few Option<T>. Using unwrap/expect on the Options panics the program in case of None. Is it okay to let Solana Program panic or should I handle None case by returning error?
|
I have a backend that performs an action as long as the user sent a payment. Here is my payment workflow: Frontend signs a transaction and send the base64 signature to the backend Backend submits the …
|
I’m getting this error on build when trying to apply custom errors: error[E0308]: mismatched types –> programs/auc/src/lib.rs:27:20 | 27 | return err!(MyError::NotAdmin); | …
|
Greatest hits from previous weeks:
|
I just migrated my NFT collection to the new Metaplex certified collection standard using their tool at link Now when I try and run .nfts().update() I get the following error Source: Program > …
|
I have following transaction logs which contains triggered event and I want to parse it: ‘Program log: Instruction: Init’, ‘Program data: 867fyqeFJJGYZDSk+Vy/7Cpm35d+fps/e3WovaZGp4v+…
|
I tried creating a PDA for my escrow program but I keep running into the error above. I ensured the seeds used in my testing code FindProgramAddress and the rust file are the same, but I still get …
|
I’m trying to install anchor on Ubuntu 22.04 but the installation fails. Here’s the terminal output: cargo install –git github.com/project-serum/anchor avm –locked –force Updating git …
|
Given a mint key of an NFT, how can I get the PublicKey of the wallet that owns it?
|
Within my Rust program I would like to get the mint token balance of an account. I found the spl_token sdk but it only has functions to convert from a balance to a ui balance. I saw that an account …
|
I want to sign some view transactions in frontend using a random keypair instead of wallet provider like phantom or solflare to avoid Approve popup I tried to create wallet like this: import { Wallet …
|
Can you answer these questions?
|
I’m trying to make a swap transaction between USDC and another token. The instruction take the AmmId as a parameter. How can I get that value if I only have the addresses of the tokens?
|
I have a working crowdsourcing contract that works well, but I wanted to expand upon one aspect to add a u64. When doing so, I seem to be getting hit with a from_bytes_mut>SizeMismatch, but I can’t …
|
From solana web3.js, it looks like it only shows 1 level deep of CPI. How would I get inner ix 2 in this example: tx: ix1: inner ix1: inner ix2: ix2: … type …
|