Skip to content

A Cloudflare Worker that caches RPC queries, batched and unbatched.

Notifications You must be signed in to change notification settings

DA0-DA0/rpc-cache-cf-worker

Repository files navigation

rpc-cache-cf-worker

A Cloudflare Worker that caches RPC queries on the edge for Cosmos SDK nodes.

Development

Run locally

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

Configuration

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

  2. Deploy to Cloudflare:

    wrangler publish
    # OR
    npm run deploy
  3. In the Cloudflare Worker dashboard, under Triggers, add a route that assigns the Worker to run in front of your RPC route.

Deploy

wrangler publish
# OR
npm run deploy

About

A Cloudflare Worker that caches RPC queries, batched and unbatched.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published