bitcoin-api-extra-0.9.1: Higher level constructs on top of the bitcoin-api package

Safe HaskellNone




watch Source


:: Client

Our client session context

-> Maybe Integer

Minimum amount of confirmations. Should be 1 or higher. A default value of 6 is used.

-> Source IO Transaction

Conduit that generates transactions

Watches incoming transactions and yields new transactions as soon as they are are inside a block. This is modelled as a Conduit Source, which means that you can easily apply your own mutators, filters, etcetera.

Keep in mind that calling this function launches a background thread which pools the Bitcoin daemon, and stops as soon as the Conduit Sink is closed.