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 |
2
votes
How to transfer SOL from wallet to another wallet in an Anchor program (Rust)
If you want the recipient to specifically be another user's wallet, you may want to use SystemAccount<'info> instead of UncheckedAccount<'info>. This will assert that the account being provided for th …
2
votes
Accepted
How to Mint a NFT which belongs to certain collection in Anchor tests
You can utilize the @metaplex-foundation/js package to create them easily.
import { keypairIdentity, Metaplex } from '@metaplex-foundation/js`
const metaplex = new Metaplex(provider.connection).use(k …
1
vote
Accepted
Add timestamp to current time
Timestamps on the Solana clock are just i64 values that represent the number of seconds that have passed, similar to Javascript's Date.now().
If you want to add a specific time period to a clock times …
3
votes
What's the best way to use a u16 as a seed for a PDA?
If you are trying to derive a PublicKey that involves a u16, it must still be provided as a Buffer to the PublicKey#findProgramAddress function.
Based on the size of the number, in this case 2 bytes, …