runonbitcoin / run-db

An indexer that crawls the blockchain and calculates RUN states
MIT License
24 stars 22 forks source link

Add webhook to send data to external services #8

Closed david0178418 closed 1 year ago

david0178418 commented 3 years ago

This is a proposal to add a webhook to run db. The motivation is in being able to leverage the indexing and state calculation work being done by run-db and piping that data to other services.

An example use case might be to leverage a cheap cloud service like Firebase's Firestore. The data is not readily available without running a more resource-intensive server. However, with a webhook, a node could be run cheaply from a desktop which posts the data for the transactions of interest to the cloud service.

Example from a dummy service logging the path and posted data image