DA0-DA0 / indexer-proxy

Proxy requests to the indexer using an API key.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

indexer-proxy

Proxy requests to the indexer using an API key.

Deployed at https://indexer.daodao.zone

Development

Run locally

npm run dev
# OR
wrangler dev --local --persist

Configuration

  1. Copy wrangler.toml.example to wrangler.toml.

  2. Configure secret:

echo <VALUE> | npx wrangler secret put API_KEY

Deploy

wrangler publish
# OR
npm run deploy

API

GET /:chainId/...:route

Passes the route through to the indexer with the API key attached.

Example: /juno-1/contract/junoDaoAddress/daoCore/dumpState

About

Proxy requests to the indexer using an API key.


Languages

Language:TypeScript 100.0%