Demo showcasing how to ingest events from the Soroban RPC getEvents
method into several different queues.
Cloudflare is an incredible stack and there's lots of flexibility here for how to process Soroban events. I've included a bunch of different examples here to show how to get started.
npm i
npm run start
This will very probably fail until:
- You've setup a Cloudflare account and run
wrangler login
- If you're still running into issues with
npm run start
feel free to file an issue and I'll try to improve this README with further instructions.
npm run deploy
This will definitely fail until:
- You've created all the necessary resources in your Cloudflare account. As per the
wrangler.toml
right now this will include:- A
kv_namespaces
namespace - A
d1_databases
database - Two
queues
- A main queue
- A dead letter queue
- A
durable_objects
binding - A
r2_buckets
bucket
- A
- Once you've got all of these services created and updated in the
wrangler.toml
file feel free to runnpm run deploy
again.