Releases: graphprotocol/token-api
Releases · graphprotocol/token-api
v1.0.0
The Graph: Token API
https://thegraph.com/token-api/
Power your apps & AI agents with real-time token data.
Supported Endpoints
- Balances
- Holders
- Tokens
- Transfers
Supported Networks
- EVM (Ethereum, Base, Arbitrum, BSC, etc.)
Quick start
Install Bun
bun install
bun dev
Tests
bun lint
bun test
.env
Environment variables
# API Server
PORT=8000
HOSTNAME=localhost
# MCP Server
SSE_PORT=8080
SSE_ENDPOINT=sse
# Clickhouse Database
URL=http://127.0.0.1:8123
DATABASE=default
USERNAME=default
PASSWORD=
MAX_LIMIT=10000
# Logging
PRETTY_LOGGING=true
VERBOSE=true
Docker environment
- Pull from GitHub Container registry
For latest tagged release
docker pull ghcr.io/graphprotocol/token-api:latest
For head of main
branch
docker pull ghcr.io/graphprotocol/token-api:develop
- Build from source
docker build \
--build-arg GIT_COMMIT="$(git rev-parse HEAD)" \
--build-arg GIT_DATE="$(git log -1 --format=%cd --date=short)" \
--build-arg GIT_VERSION="$(git describe --tags --abbrev=0)" \
-t token-api .
- Run with
.env
file
docker run -it --rm --env-file .env -p 8000:8000 ghcr.io/graphprotocol/token-api:develop