package bitcoinml

  1. Overview
  2. Docs
module In : sig ... end
module Out : sig ... end
module Witness : sig ... end
type t = {
  1. hash : Hash.t;
  2. version : Stdint.int32;
  3. txin : In.t list;
  4. txout : Out.t list;
  5. locktime : Stdint.uint32;
  6. size : int;
  7. vsize : int;
  8. witness : Witness.t option;
}
include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val parse : ?coinbase:bool -> bytes -> bytes * t option
val parse_legacy : ?coinbase:bool -> bytes -> bytes * t option
val parse_all : bytes -> int -> t list option
val parse_all_legacy : bytes -> int -> t list option
val serialize : t -> bytes
val serialize_legacy : t -> bytes
val serialize_all : t list -> bytes
val serialize_all_legacy : t list -> bytes
val is_witness : t -> bool
val is_coinbase : t -> bool
val to_string : t -> string
OCaml

Innovation. Community. Security.