https://github.com/banool/aptos-account-value
Tools to determine the total value of an Aptos account.
https://github.com/banool/aptos-account-value
Last synced: 3 months ago
JSON representation
Tools to determine the total value of an Aptos account.
- Host: GitHub
- URL: https://github.com/banool/aptos-account-value
- Owner: banool
- Created: 2023-11-25T17:55:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-07T08:25:33.000Z (about 1 year ago)
- Last Synced: 2025-12-22T19:44:49.574Z (6 months ago)
- Language: TypeScript
- Homepage: https://value.dport.me/
- Size: 468 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Aptos Account Value
This repo primarily provides a library for determining the total value of an account. You can find that in [library/](library/).
I have built a simple UI on top of this library in [frontend/](frontend/). See it live at https://value.dport.me.
To make it possible to use this library from other languages I've made an API wrapping the library in [api/](api/).
## How does the library work?
1. You provide a list of addresses.
1. Per address, we look up assets on that account. See [library/src/fetchers/](library/src/fetchers/).
1. Once we have all the assets, we look up their value. Currently we just use CoinGecko. See [library/src/appraisers](library/src/appraisers).
1. Convert to the output currency.
1. Bingo bango bongo!
## An asset type is missing, how can I add it?
If it is a coin / fungible asset you can most likely just add an entry for it in [library/src/appraisers/gecko/lookup.ts](library/src/appraisers/gecko/lookup.ts). PRs are welcome! ðŸ¤
If it's something more complicated than that you might need to add a new fetcher.
## Anything else I should know?
- We just support coins / fungible assets and staking right now.
- As usual I don't log anything, include any telemetry, etc. in any of this code.
## How do I contrinbute?
See [CONTRIBUTING.md](CONTRIBUTING.md).