package bitcoinml

  1. Overview
  2. Docs
val amount_check : ?max_money:Stdint.Int64.t -> Stdint.Int64.t -> bool
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;
}
val parse : ?coinbase:bool -> string -> string * t option
val parse_legacy : ?coinbase:bool -> string -> string * t option
val parse_all : string -> int -> t list option
val parse_all_legacy : string -> int -> t list option
val serialize : t -> string
val serialize_legacy : t -> string
val serialize_all : t list -> string
val serialize_all_legacy : t list -> string
val is_witness : t -> bool
val is_coinbase : t -> bool
OCaml

Innovation. Community. Security.