Search Results
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 |
3
votes
Accepted
How to authenticate or validate wallets or NFTs when executing solana instructions
Manual implementations
A brief question that calls for an in-depth answer, I think this has been asked many times before:
How to get NFT's owner
How to validate NFT collection addresses
Using Sol Ce …
2
votes
Accepted
Super slow deployments when using Solana CLI 16.x
Yesterday was released the Solana CLI version 16.10, it has fixed the deployment speed issues. Just update your Solana CLI by running:
solana-install update
Then this is what I did in my Anchor progr …
1
vote
How to fetch empty optional accounts in Anchor
Seems like using just "1" does the job:
// Javascript:
myProgram.account.myAccount.all([
{
memcmp: {
offset: 8,
bytes: "1",
},
},
])
6
votes
Accepted
Compile error on Anchor 0.27 when using anchor-spl
Just add mpl-token-metadata using "=1.9.0" within your Cargo.toml dependencies, E.G:
[dependencies]
anchor-lang = "0.27.0"
anchor-spl = { version = "0.27.0", features = ["metadata"] }
mpl-token-metada …
4
votes
Accepted
SOL transfer via CPI signed with PDA throws fails
For a system program transfer instruction, the funding account (the one sending the SOL) must sign the instruction, in your case it needs to be signed by the bank account. But since it's not a PDA th …
0
votes
Accepted
Anchor build breaks when adding chrono package
Seems like there are two ways of retrieving Clock according Solana docs:
Passing SYSVAR_CLOCK_PUBKEY into an instruction
let clock = Clock::from_account_info(&sysvar_clock_pubkey)?;
let current_times …