About OCaml-bitcoin

OCaml-bitcoin is a library offering an OCaml interface to the official Bitcoin client API. It works by making JSON-RPC calls over the network to a running Bitcoin daemon offering the client API.

OCaml-bitcoin is developed by Dario Teixeira and is licensed under the terms of the GNU GPL 2.0.


The core library depends solely on Yojson and Ocamlnet's Netstring. If you wish to build the auxiliary bitcoin_ocsigen library you will also need Lwt and the Ocsigen server libraries. If you wish to build the auxiliary bitcoin_ocamlnet library you will need Ocamlnet's Netclient.

Downloads and development

OCaml-bitcoin is distributed in source-code form. You can get all releases from the project's page at GitHub or the OCaml Forge. The latest version is OCaml-bitcoin 1.1.1, released on 2013-05-23. Here is the changelog for the last few releases:

Version 1.1.1 (2013-05-23)

Version 1.1 (2013-02-26)

Version 1.0 (2012-10-24)

Bulding and Installing

OCaml-bitcoin uses OASIS. Building and installing follows the costumary configure, make, and make install sequence. To generate the ocamldoc API documentation, run make doc.


You can browse the Ocamldoc generated API documentation online.