New answers tagged pda
1
vote
Anchor: Do I need to validate PDAs when passing them into my program?
yes you should otherwise people could just give any PDA address from your program (of the same kind)
2
votes
Accepted
Anchor: Do I need to validate PDAs when passing them into my program?
Not really,
But you should. You can do it as suggested using an anchor constraint in the #[derive(Accounts)] struct
#[account(
seeds = [b"some_seed"],
bump,
seeds:...
0
votes
PDA signed CPI access control
Going through each question individually:
The design is perfectly reasonable. Depending on how each game is designed, you might be able to refactor some game logic into a combined account, but ...
0
votes
How to filter most recently created pdas of a program
There is no technically way to achieve this. One clunky way would be to save some non-precise timestamp (like ddmmyyyy) in the PDA (wasting space for sure), and then u can query that with memcmp for ...
0
votes
cargo build works but `cargo build-sbf` and `anchor build` fail with unsupported target error
i am actually facing same issue, mine doesn't generate an error, cargo build-bpf does nothing, same with anchor build, it does absolutely nothing , doesn't log any error , doesn't generate .so file, i ...
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....
0
votes
Close PDA account dynamically and conditionally in secure way
I think this is new approach, which can be used in new anchor versions.
https://github.com/coral-xyz/anchor/pull/2169/files
Top 50 recent answers are included
Related Tags
pda × 272anchor × 124
solana-program × 68
rust × 36
account × 35
cpi × 28
spl-token × 20
anchor-lang × 19
seed × 18
bump × 16
transfer × 13
program × 13
web3.js × 11
sol × 10
transactions × 9
account-data × 9
associated-token-account × 8
signature × 8
metaplex × 7
initialize × 7
token × 6
anchor-test × 6
mint × 6
anchor-client × 5
metadata × 5