object BitcoinMonitor
- Alphabetic
- By Inheritance
- BitcoinMonitor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class AppliedBitcoinBlock(block: Block, height: Int) extends BitcoinBlockSync with Product with Serializable
- trait BitcoinBlockSync extends AnyRef
A wrapper for a bitcoin Block update.
- case class UnappliedBitcoinBlock(block: Block, height: Int) extends BitcoinBlockSync with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(bitcoind: BitcoindRpcClient, startBlock: Option[DoubleSha256DigestBE] = None, zmqHost: String = "127.0.0.1", zmqPort: Int = 28332): Resource[IO, Stream[IO, BitcoinBlockSync]]
Initialize and return a BitcoinMonitor instance.
Initialize and return a BitcoinMonitor instance.
- bitcoind
The bitcoind instance to monitor
- startBlock
The hash of a past block. Used to retroactively report blocks. The bitcoin monitor will report all blocks starting at this block.
- zmqHost
The host in which the underlying ZmqSubscriber will be connected to. This is used to capture newly minted blocks.
- zmqPort
The port in which the underlying ZmqSubscriber will be connected to. This is used to capture newly minted blocks.
- returns
An instance of a BitcoinMonitor
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def initZmqSubscriber(bitcoind: BitcoindRpcClient, host: String, port: Int)(blockQueue: Queue[IO, AppliedBitcoinBlock]): ZMQSubscriber
Initialize a ZeroMQ subscriber that adds new blocks to a queue
Initialize a ZeroMQ subscriber that adds new blocks to a queue
- bitcoind
The bitcoind instance to query additional data
- host
The host in which the ZmqSubscriber will be connected to
- port
The port in which the ZmqSubscriber will be connected to
- blockQueue
The queue to add new blocks to
- returns
An initialized ZMQSubcriber instance
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object Bitcoind
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)