EndlessVanguard / bitcoin-remunerate-api

A scheme for trustless, decentralized, anonymous, remuneration for content creators.
1 stars 0 forks source link

Push events from blockchain #8

Open mattgstevens opened 8 years ago

mattgstevens commented 8 years ago

We can register a websocket to listen for payments on addresses we are tracking.

https://medium.com/@orweinberger/coding-an-alerting-mechanism-for-the-blockchain-using-node-js-e644fff35dd#.zhf7p7vtu

Instead of needing to make HTTP request to an API, we could eagerly listen for when an address is paid. This could be cleaned up when the TTL for the redis entry expires.

fromheten commented 8 years ago

:+1: a way better way to do it. Should not be too hard to replace the current way we do it - just have to replace http with websocket.