Skip to main content
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
Results tagged with
Search options questions only not deleted user 2350
2 votes
0 answers
418 views

Setting account values using Zero Copy PDA on Anchor

I've created a 2D array (10x10) that using a PDA and zero_copy. Here is how I set it up. pub fn setBoard(ctx: Context<SetBoard>, increment: u64) -> Result<()> { let mut board = ctx.accounts.bo …
AceGravity's user avatar
2 votes
1 answer
228 views

Multiple Signers on Anchor

systemProgram: anchor.web3.SystemProgram.programId, }, signers: [targetUserProfileAccount, payer], // chat account and payer are the signers }); expect(tx).to.exist; }); anchor rust
AceGravity's user avatar
2 votes
1 answer
127 views

How should generate account keys be treated?

If an account is not generated via PDA and is instead created as a new keypair, how should this new keypair be treated? Is it important to custody this somewhere secure? https://github.com/coral-xyz/a …
AceGravity's user avatar
0 votes
2 answers
79 views

When to not use PDAs

I'm building a project that uses PDAs quite extensively. It seems to me that PDAs are very useful for almost every type of application (alternative for hash maps, storing user data etc) and not having …
AceGravity's user avatar
2 votes
1 answer
575 views

What are Token Extensions in Solana?

I hear that solana token extensions are coming soon. A cursory search results in this: https://solana.com/solutions/token-extensions Is this the same as solana SPL-2022? What are the big differences b …
AceGravity's user avatar
3 votes
1 answer
237 views

Anchor PDA Seed

I want to create an anchor PDA using the following logic: seeds = [ b"some-text", user.key().as_ref(), Vec<Pubkey>, bool ] Is this possible? The array of pubkeys are variable in lengt …
AceGravity's user avatar