https://github.com/gitcoinco/allo-indexer-client
A client for the Allo Protocol Indexer data
https://github.com/gitcoinco/allo-indexer-client
Last synced: 11 months ago
JSON representation
A client for the Allo Protocol Indexer data
- Host: GitHub
- URL: https://github.com/gitcoinco/allo-indexer-client
- Owner: gitcoinco
- Created: 2023-03-20T13:39:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-05T11:48:16.000Z (over 2 years ago)
- Last Synced: 2025-07-21T16:11:35.596Z (11 months ago)
- Language: TypeScript
- Size: 132 KB
- Stars: 9
- Watchers: 10
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Allo indexer client
A typescript client for the [Allo Indexer](https://github.com/gitcoinco/allo-indexer).
## Installation
```
npm install git+https://github.com/gitcoinco/allo-indexer-client.git
```
## Example
```javascript
import { Client } from "allo-indexer-client";
const baseURI = "https://grants-stack-indexer.fly.dev/";
const chainId = 1;
const fetchImplementation = fetch;
const client = new Client(fetchImplementation, baseURI, chainId);
(async () => {
const projects = await client.getProjects();
console.log(projects);
})();
```
### Cli
```
git clone git@github.com:gitcoinco/allo-indexer-client.git
cd allo-indexer-client
npm run cli -- projects
npm run cli -- project --projectNumber 12
```