package tezos-client-008-PtEdo2Zk

  1. Overview
  2. Docs
module Lifted_protocol : sig ... end
module Alpha_block_services : sig ... end
class type rpc_context = object ... end

Client RPC context

The class wrap_rpc_context is a wrapper class used by the proxy mode clients. From a general-purpose RPC_context.json t, the class is augmented with shell services to provide RPC calls that are protocol-dependent.

class type full = object ... end

The class type full allows to create contexts that are explicitly used by low-level shell functions, while containing various information (I/O services, RPCs...). Then, depending on the usage, the type may be coerced into one of its following ascendants to serve for explicit operations on blocks, chain or daemon for instance.

From a Client_context.full, the class allows to call RPCs from the node and those defined by the protocol.

val register_error_kind : [ `Branch | `Temporary | `Permanent ] -> id:string -> title:string -> description:string -> ?pp:(Stdlib.Format.formatter -> 'a -> unit) -> 'a Data_encoding.t -> (Tezos_error_monad.TzCore.error -> 'a option) -> ('a -> Tezos_error_monad.TzCore.error) -> unit
OCaml

Innovation. Community. Security.