Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token prices #476

Open
SriramV739 opened this issue Feb 19, 2024 · 1 comment
Open

Token prices #476

SriramV739 opened this issue Feb 19, 2024 · 1 comment

Comments

@SriramV739
Copy link

Hello: Thanks for making this repo, very useful. I see that we have a value column representing the token quantity for each txn. How do I interpret the value, should I divide by some power of 10 to get the actual txn quantity? For a txn with 300 token transfers in etherscan.io I see a value column in your repo at around 3000000.

Also is there a place where I can get the unit price of the token for each txn. I will like to use this to get the $ value of the txn. This information is available in etherscan.io website but I will love to get it from this repo.

@vonum
Copy link

vonum commented May 12, 2024

Hey @SriramV739 , each token has it's decimals defined in the contract. so you can do the following:
amount / POW(10, decimals)

For ether, that would be amount / POW(10, 18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants