Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 820 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 820 Bytes

DAOs Balances Service

A service to get a sorted registered DAOs total holdings (ETH + erc20) array in USD via APIs
The service returns total balance and formatted total balance for each DAO

image

Usage

The endpoint accepts 4 parameters:

  • version: Alchemy version (v1 or v2)
  • network: http_main for example.
  • from (optional): start selection index
  • to (optional): end selection index (excluding)

exmaple: https://daos-balances-service.herokuapp.com/daosBalance/getDaosBalances/?version=v1&network=http_main&from=0&to=20

By default, the DAOs are sorted in descending balance order.

Development

  1. git clone https://github.com/daostack/daos-balances.git && cd daos-balances
  2. npm install
  3. npm start

The service runs on port 3001