Module Make.Mempool

val pending_operations : Mavryk_rpc.Context.simple -> ?chain:chain -> ?version:version -> ?validated:bool -> ?branch_delayed:bool -> ?branch_refused:bool -> ?refused:bool -> ?outdated:bool -> ?validation_passes:int list -> unit -> t Mavryk_base.TzPervasives.tzresult Lwt.t

Call RPC GET /chains/chain/mempool/pending_operations

  • Default version is 0.
  • Default validated is true.
  • Default branch_delayed is true.
  • Default branch_refused is true.
  • Default refused is true.
  • Default outdated is true.
  • Default validation_passes is []

Call RPC POST /chains/chain/mempool/ban_operation

Call RPC POST /chains/chain/mempool/unban_operation

val unban_all_operations : Mavryk_rpc.Context.simple -> ?chain:chain -> unit -> unit Mavryk_error_monad.Error_monad.tzresult Lwt.t

Call RPC POST /chains/chain/mempool/unban_all_operations

val monitor_operations : Mavryk_rpc.Context.streamed -> ?chain:chain -> ?version:version -> ?validated:bool -> ?branch_delayed:bool -> ?branch_refused:bool -> ?refused:bool -> ?outdated:bool -> ?validation_passes:int list -> unit -> (((Mavryk_base.TzPervasives.Operation_hash.t * Next_proto.operation) * Mavryk_base.TzPervasives.error Mavryk_base.TzPervasives.trace option) list Lwt_stream.t * Mavryk_rpc.Context.stopper) Mavryk_base.TzPervasives.tzresult Lwt.t

Call RPC GET /chains/chain/mempool/monitor_operations

val request_operations : Mavryk_rpc.Context.simple -> ?chain:chain -> ?peer_id:Mavryk_base.P2p_peer.Id.t -> unit -> unit Mavryk_base.TzPervasives.tzresult Lwt.t

Call RPC POST /chains/chain/mempool/request_operations