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 153

A token is a coin on the Solana network

0 votes

How to fetch the price of a token(off-chain) based on token name/symbol/address

I understand Solana Explorer uses CoinGecko for its market price data. They have a REST API with a free tier (50 calls/min). /coins/list gets you the list of available tokens and /coins/{your coin ID} …
sohrab's user avatar
  • 1,851
1 vote

Find amount of tokens swapped in a transaction?

Solscan does this by looking at the inner instructions of a transaction and finding all token transfer instructions. In your example transaction, you'll find 5 token transfer inner instructions. …
sohrab's user avatar
  • 1,851
7 votes
Accepted

How to include other programs and test CPIs on localnet using Anchor?

I assume you mean to test in your local test validator, using anchor test. You cannot simply copy-paste the spl_token program because it is not an Anchor program. There are a couple of ways to go abou …
sohrab's user avatar
  • 1,851