Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 578 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 578 Bytes

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