Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/giveth/giv-supply-function
https://github.com/giveth/giv-supply-function
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/giveth/giv-supply-function
- Owner: Giveth
- Created: 2022-08-18T16:15:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-16T11:11:12.000Z (3 months ago)
- Last Synced: 2024-08-17T12:13:56.953Z (3 months ago)
- Language: JavaScript
- Size: 93.8 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GIV Circulating Supply Endpoint
A nodejs endpoint that returns the current GIV token circulating and total supply. The lambda function has two variations to meet the [CoinGecko](https://www.coingecko.com/en/coins/giveth) and [CoinMarketCap](https://coinmarketcap.com/currencies/giveth/) circulating supply criteria.## Current Hosted Endpoints
- [CoinGecko's GIV supply API.](https://circulating.giveth.io/token-supply)
- [CoinMarketCap's GIV Circulating supply API.](https://supply.giveth.io/giv-supply-cmc?q=circulating)
- [CoinMarketCap's GIV Total supply API.](https://supply.giveth.io/giv-supply-cmc?q=totalcoins)
## Build the image locally
```
docker compose -f docker-compose-local.yml build --no-cache
```
## Running the local image
```
docker compose -f docker-compose-local.yml up -d --build
```
## Check endpoints
This will create the below endpoints as per the provider criteria### Coingecko
```
curl "http://localhost:3000/token-supply"
```
### Coinmarketcap
Circulating:
```
curl "http://localhost:3000/giv-supply-cmc?q=circulating"
```
Total:
```
curl http://localhost:3000/giv-supply-cmc?q=totalcoins
```