reactive-bitcoin-node
Akka actor based bitcoin client.
Some of the API commands of the original Bitcoin client are supported. More are in progress.
The bitcoin node can be used in Java or Scala, or run through the command-line interface.
Usage
Create an instance of Bitcoin Node object with an actor system.
scala> import io.github.yzernik.reactivebitcoinnode.node._
scala> import akka.actor.ActorSystem
scala> implicit val sys = ActorSystem("sys")
scala> val node = new Node()
Optionally specify which network parameters to use.
scala> val node = new Node(TestNet3Params)
Commands
API commands are available as asynchronous methods on the node object.
For example,
scala> import scala.concurrent.Future
scala> val count: Future[Int] = node.getBlockCount
to get information about the current state of the blockchain.
or
scala> import io.github.yzernik.btcio.actors.BTC._
scala> val peers: Future[List[PeerInfo]] = node.getPeerInfo
to get info about the currently connected peers.
etc.
About
bitcoin-scodec is used for encoding/decoding of network peer messages.