This is a very simple API to cache frequently used data such as blockhashes to safe RPC calls. It is built using Cloudflare Workers and deployed to the Cloudflare Edge network for lowest possible latency.
Currently supported:
getLatestBlockhash
- Make sure wrangler is installed:
bun install wrangler
- Login to Cloudflare:
bunx wrangler login
- Set your RPC URL:
bunx wrangler secret put rpc_url
- Install dependencies:
bun install
Create a .dev.vars
file in the root of the project. Copy the contetns of .vars.example
and modify the values as needed.
bun run dev
bun run deploy