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 |
4
votes
Accepted
What is the best way to get all token holders and their balances by mint address?
Here you go, this will return all non-zero balances:
const conn = new Connection('<INSERT RPC HERE>');
const MINT = new PublicKey('<INSERT MINT HERE>');
const TOKEN_PROGRAM_ID = new PublicKey('Tokenke …
1
vote
Accepted
Multiple ATAs for the same mint
Since you mentioned it's the same mint for both ATAs, you're dealing with a nested ATA. This question gives some more info on these and how to recover funds from them. To avoid this happening in the f …
8
votes
Accepted
Parse transactions in human readable format
Generally speaking, on-chain transactions are just a bunch of serialized bytes, so to parse it you need to have some more context on what programs it's interacting with. For starters, if it's interact …
1
vote
Accepted
how to find a new token in the block
Inside your block, you've got a list of transactions. These transactions in turn have a list of instructions (inside the message of each transaction). What you want to check for is instructions that c …