package tezos-shell-services

  1. Overview
  2. Docs
type chain = [
  1. | `Main
  2. | `Test
  3. | `Hash of Tezos_crypto.Chain_id.t
]
val parse_chain : string -> (chain, string) Stdlib.result
val to_string : chain -> string
val chain_arg : chain Tezos_rpc.RPC_arg.t
type invalid_block = {
  1. hash : Tezos_crypto.Block_hash.t;
  2. level : Stdlib.Int32.t;
  3. errors : Tezos_error_monad.TzCore.error list;
}
type prefix = unit * chain
val path : (unit, prefix) Tezos_rpc.RPC_path.path
val chain_id : Tezos_rpc.RPC_context.simple -> ?chain:chain -> unit -> (Tezos_crypto.Chain_id.t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val checkpoint : Tezos_rpc.RPC_context.simple -> ?chain:chain -> unit -> (Tezos_base.Block_header.t * int32 * int32 * History_mode.t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
module Levels : sig ... end
module Blocks : sig ... end
module Invalid_blocks : sig ... end
module S : sig ... end
OCaml

Innovation. Community. Security.