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 answers only not deleted user 3329
3 votes
Accepted

How to calculate token prices from LP pairs using `getTokenAccountBalance`?

The getTokenAccountBalance method returns the amount of tokens you hold in your token account. Every wallet has a respective token account to hold the specific tokens. In this case, there are two thin …
Syed Aabis Akhtar's user avatar
4 votes

Is it possible to make an ATA in one instruction, then use that created ATA in the next inst...

The key thing is that token ATA is not fetched from chain, it is calculated, so it can be gotten even if it doesn't exist yet. Yes you absolutely can, the order of instruction is what matters here. Th …
Syed Aabis Akhtar's user avatar