| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Bitcoin.Api.Transaction
Description
This module provides functionality to manipulate raw transaction. It
automatically interprets transactions using the `bitcoin-tx` package, so
you can work with actual Transaction objects rather than their
serialized format.
Documentation
Arguments
| :: 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.