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 |
3
votes
how to fetch list of all pda accounts in frontend? like sale account instance to display in ...
With PDAs, you can build a "hashmap-like" structure. but it's only hashmap-like. There is now way to iterate over all PDAs that were created.
There are a few options on how to mitigate this.
You can e …
4
votes
Can I call 'get account info' in instruction in rust?
The way the Solana runtime (dubbed "Sealevel") works is that you have to pass ALL accounts that you will access in an instruction as "context" to the transaction. That way, Solana is able to know ahea …
3
votes
How to calculate the compound interest on the amount of tokens locked in a vault for multipl...
Collect will do the math (compounded interest in this case), advance the last_collection timestamp, and collect the amount into a field in their account, e.g. collected_yet_unclaimed: u64. …