Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinax-network/subgraph-antelope-tokens
Subgraph Antelope Tokens
https://github.com/pinax-network/subgraph-antelope-tokens
Last synced: 11 days ago
JSON representation
Subgraph Antelope Tokens
- Host: GitHub
- URL: https://github.com/pinax-network/subgraph-antelope-tokens
- Owner: pinax-network
- License: mit
- Created: 2024-09-12T21:15:48.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T11:43:45.000Z (3 months ago)
- Last Synced: 2024-11-09T12:29:02.528Z (3 months ago)
- Language: Rust
- Size: 787 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Subgraph: `Antelope Tokens`
> Token Balances & Supply
>
> WAX, EOS, Ultra, Telos...
> [`sf.antelope.type.v1.Block`](https://buf.build/pinax/firehose-antelope/docs/main:sf.antelope.type.v1)- [x] **Balances**
- [x] **Supply** & **Max Supply**## Chains
- **API Key**:
- **Base URL**:
- **Query URL format**: `{base_url}`/api/`{api-key}`/subgraphs/id/`{subgraph_id}`| Chain | Subgraph ID |
| ----- | ----------- |
| WAX | [`6Tt5mHVNDyAo3KbsYMUeemmzs2381vXUquXw75EnG9cW`](https://thegraph.com/explorer/subgraphs/6Tt5mHVNDyAo3KbsYMUeemmzs2381vXUquXw75EnG9cW?view=Query&chain=arbitrum-one) |
| EOS | [`Ce1om4KPxZHwFxhtz2pVuCD4AUiKisrYecHVWsvEW6MU`](https://thegraph.com/explorer/subgraphs/Ce1om4KPxZHwFxhtz2pVuCD4AUiKisrYecHVWsvEW6MU?view=Query&chain=arbitrum-one) |
| Kylin | [`B7YqehhCQyZmqCPL6raVv8ncqzLq69EFirjf7Gnfiv7A`](https://thegraph.com/explorer/subgraphs/B7YqehhCQyZmqCPL6raVv8ncqzLq69EFirjf7Gnfiv7A?view=Query&chain=arbitrum-one) |## GraphQL
**Balances by Owner**
```graphql
query BalanceByOwner{
balances(first: 20, where:{ owner: "eosio.stake" }) {
balance
token{
code
symcode
precision
}
}
}
```**Tokens by Top Holders**
```graphql
query TokensHolders {
balances(where: {token_: {code: "eosio.token"}} orderBy: balance, orderDirection: desc) {
owner
balance
token{
code
symcode
}
}
}
```**Token Supply**
```graphql
query Supply {
supplies(first: 20, orderBy: block__number, orderDirection: desc){
supply
max_supply
token{
code
symcode
precision
}
}
}
```**Recent Balances Changes**
```graphql
query RecentBalancesChanges {
balances(first: 20, orderBy: block__number, orderDirection: desc) {
owner
balance
token{
code
symcode
}
block{
number
date
}
}
}
```## Substreams Modules
```mermaid
graph TD;
graph_out[map: graph_out];
sf.antelope.type.v1.Block[source: sf.antelope.type.v1.Block] --> graph_out;
```## Subgraph deployment
```bash
graph indexer rules prepare --network arbitrum-one
graph indexer allocations create arbitrum-one 100
```