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 |
Should be used for all things relating to the Anchor Framework.
3
votes
Accepted
How can I create a new PDA everytime?
When creating a PDA you can number to each note to give it a unique PDA address and still have the signer key to ensure that the signer can only see their own notes. This number could be a user input …
2
votes
2
answers
65
views
Error when passing multiple accounts using the typescript program namespace
Object literal may only specify known properties and 'vestingAccount' does not exist in type 'ResolvedAccounts<{ name: "signer"; writable: true; signer: true; } | { name: "vestingAccount"; writable: t …
3
votes
Accepted
passing anchor `#[instruction]` argument with another argument results in different address ...
The instructions are passed in order from left to right. So either you change the order of your parameters in the guess instruction or you write your instruction macro like this: #[instruction(dummy: …
1
vote
1
answer
26
views
`Event doesnt exist` error when integrating anchor wallet on expo app
When attempting to sign a transaction as anchor.Wallet in a react native expo app for a solana program, the error Property Event doesnt exist is given
0
votes
`Event doesnt exist` error when integrating anchor wallet on expo app
solana-wallet-adapter is not compatible with react-native so when setting up your anchor wallet connection, you cannot setup the connection with solana-wallet-adapter …
2
votes
IdlError: Type not found for custom struct
When defining the struct, you need to use #[derive(Debug, Clone, AnchorSerialize, AnchorDeserialize)] so the struct can be properly deserialized and serialized to be used in the anchor account macro …
3
votes
Accepted
Relational PDA design through seeds
You could achieve this by including the user's public key in the PDA.
First include user information in the data structures:
pub struct Task {
pub creator: Pubkey,
pub id: u64,
pub count: …