package bitcoinml

  1. Overview
  2. Docs

Lazy block parser, where only the header is parsed while the transaction list parsing is deffered to the future

type t = {
  1. header : Block.Header.t;
  2. ltxs : Tx.t list option Lazy.t;
  3. size : int;
}
val parse : bytes -> t option

Lazy parse of a block

val parse_legacy : bytes -> t option

Lazy parse of a legacy block

val force : t -> Block.t option

Force a lazy eval

val force_option : t option -> Block.t option

Force a lazy eval of an option lazy block

OCaml

Innovation. Community. Security.