package tezos-shell-services

  1. Overview
  2. Docs
val pending_operations_version_dispatcher : version:int -> t -> t_with_version Tezos_rpc.RPC_answer.t Lwt.t
val pending_operations : Tezos_rpc.RPC_context.simple -> ?chain:Block_services.chain -> ?version:int -> unit -> (t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t

Call RPC GET /chains/chain/mempool/pending_operations

Call RPC POST /chains/chain/mempool/ban_operation

Call RPC POST /chains/chain/mempool/unban_operation

val unban_all_operations : Tezos_rpc.RPC_context.simple -> ?chain:Block_services.chain -> unit -> unit Tezos_error_monad.Error_monad.tzresult Lwt.t

Call RPC POST /chains/chain/mempool/unban_all_operations

val monitor_operations : Tezos_rpc.RPC_context.streamed -> ?chain:Block_services.chain -> ?applied:bool -> ?branch_delayed:bool -> ?branch_refused:bool -> ?refused:bool -> ?outdated:bool -> unit -> (((Tezos_crypto.Operation_hash.t * Block_services.Fake_protocol.operation) * Tezos_error_monad.TzCore.error list option) list Lwt_stream.t * Tezos_rpc.RPC_context.stopper, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t

Call RPC GET /chains/chain/mempool/monitor_operations

val request_operations : Tezos_rpc.RPC_context.simple -> ?chain:Block_services.chain -> ?peer_id:Tezos_base.P2p_peer.Id.t -> unit -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t

Call RPC POST /chains/chain/mempool/request_operations

OCaml

Innovation. Community. Security.