Module M.Block_services

val path : (unit, (unit * [ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ]) * [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ]) Mavryk_rpc.Path.t
type raw_block_header = {
  1. shell : Mavryk_base.Block_header.shell_header;
  2. protocol_data : Protocol.block_header_data;
}
type block_metadata = {
  1. protocol_data : Protocol.block_header_metadata;
  2. test_chain_status : Mavryk_base.Test_chain_status.t;
  3. max_operations_ttl : int;
  4. max_operation_data_length : int;
  5. max_block_header_length : int;
  6. operation_list_quota : Mavryk_shell_services__Block_services.operation_list_quota list;
}
type operation_receipt =
  1. | Empty
  2. | Too_large
  3. | Receipt of Protocol.operation_receipt
type block_info = {
  1. chain_id : Mavryk_base.TzPervasives.Chain_id.t;
  2. hash : Mavryk_base.TzPervasives.Block_hash.t;
  3. header : raw_block_header;
  4. metadata : block_metadata option;
  5. operations : operation list list;
}
val block_info_encoding : (Mavryk_shell_services__Block_services.version * block_info) Mavryk_base.TzPervasives.Data_encoding.t
val info : Mavryk_rpc.Context.simple -> ?version:Mavryk_shell_services__Block_services.version -> ?force_metadata:bool -> ?metadata:[ `Always | `Never ] -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> block_info Mavryk_base.TzPervasives.tzresult Lwt.t
val hash : Mavryk_rpc.Context.simple -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> Mavryk_base.TzPervasives.Block_hash.t Mavryk_base.TzPervasives.tzresult Lwt.t
val raw_header : Mavryk_rpc.Context.simple -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> Mavryk_base.TzPervasives.Bytes.t Mavryk_base.TzPervasives.tzresult Lwt.t
val header : Mavryk_rpc.Context.simple -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> block_header Mavryk_base.TzPervasives.tzresult Lwt.t
val metadata : Mavryk_rpc.Context.simple -> ?version:Mavryk_shell_services__Block_services.version -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> block_metadata Mavryk_base.TzPervasives.tzresult Lwt.t
val metadata_hash : Mavryk_rpc.Context.simple -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> Mavryk_base.TzPervasives.Block_metadata_hash.t Mavryk_base.TzPervasives.tzresult Lwt.t
val resulting_context_hash : Mavryk_rpc.Context.simple -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> Mavryk_base.TzPervasives.Context_hash.t Mavryk_base.TzPervasives.tzresult Lwt.t
module Header : sig ... end
module Operations : sig ... end
module Operation_hashes : sig ... end
module Operation_metadata_hashes : sig ... end
module Context : sig ... end
module Helpers : sig ... end
module Mempool : sig ... end
val live_blocks : Mavryk_rpc.Context.simple -> ?chain:[ `Main | `Test | `Hash of Mavryk_base.TzPervasives.Chain_id.t ] -> ?block: [ `Genesis | `Head of int | `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int | `Hash of Mavryk_base.TzPervasives.Block_hash.t * int | `Level of Stdlib.Int32.t ] -> unit -> Mavryk_base.TzPervasives.Block_hash.Set.t Mavryk_base.TzPervasives.tzresult Lwt.t
module S : sig ... end