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 |
1
vote
Accepted
How to make NFT with Solana?
You have 3 options:
Using the Metaplex Token Metadata Program - Nft Standard
https://developers.metaplex.com/token-metadata
Using the Metaplex Core - Next Solana NFT standard.
https://developers.metap …
0
votes
Anchor Program unable to sign a transfer with a PDA
self.sender.to_account_info(),
to: self.receiver.to_account_info()
};
let ctx = CpiContext::new(
self.system_program.to_account_info(),
accounts
);
transfer(ctx, amount)
}
}
//PDa … SigningAccount {
data: u64,
bump: u8,
}
impl SigningAccount {
pub const LEN: usize = 8 + 8 + 1;
}
Notes:
Changed your send_sol function;
Added send_sol_pda function;
Fixed and added the normal cpi way;
Added Pda …
1
vote
Correct way to define and initialize a variable-length account in Anchor
The correct way would be the first imo, but looks like you have miss typed the names.// - MissionInfo::MAXIMUM_SIZE, would be MissionInfo::MAX_SIZE
Also i would put the account discriminator together, …
0
votes
Unable to create a PDA TokenAccount using anchor constraints
1- The seeds of your position acc are wrong.
This is incorrect- b"pos".as_ref().
Use this instead:
seeds = [b"pos", details.key().as_ref(), nft_mint.key().as_ref()],
0
votes
How to correctly store pda bump
Usually, when initializing a PDA, it's advisable to store the bump within the PDA itself. However, there are instances where bumps can be saved in a different PDA. … For example, consider a config PDA Acc. …