Skip to content

Latest commit

 

History

History

query-api

Query API

query.anonklub.xyz/

Develop

  1. Authenticate requests

    Data Provider Register/Get Credentials For node script
    BigQuery Define Google Service Account and export google credentials in a .key.json file echo "GOOGLE_CLOUD_PROJECT=your-project-id\GOOGLE_APPLICATION_CREDENTIALS='$(cat .key.json)'" > .env
    Dune Analytics Create Dune Account echo "DUNE_API_KEY=yourduneapikey" >> .env
    The Graph Subgraph Studio echo "GRAPH_API_KEY=yourapikey" >> .env
  2. Source .env file: source .env

  3. Start

    • node script
      pnpm i
      pnpm start.dev
      

The Graph

In case new queries are added or existing ones are updated, re-create the artifacts with:

pnpm build.graph

Deploy

Automatic with deploy-*.yml GitHub workflows

Or manually

Install [`flyctl`](https://fly.io/docs/flyctl/installing/).

flyctl deploy \
            --config apis/query/fly-staging.toml \
            --dockerfile apis/query/Dockerfile \
            --remote-only