package octez-libs

  1. Overview
  2. Docs
type (+'a, 'prefix, 'params, 'query, 'input, 'output, 'error) t = ('a, 'prefix, 'params, 'query, 'input, 'output, 'error) Resto.MakeService(Tezos_rpc__.RPC_encoding).t constraint 'a = [< Resto.meth ]
type (+'a, 'prefix, 'params, 'query, 'input, 'output, 'error) service = ('a, 'prefix, 'params, 'query, 'input, 'output, 'error) t constraint 'a = [< Resto.meth ]
val meth : ([< Resto.meth ] as 'a, 'prefix, 'params, 'query, 'input, 'output, 'error) service -> 'a
val query : ([< Resto.meth ], 'prefix, 'params, 'query, 'input, 'output, 'error) service -> 'query Resto.Query.t
type !'a input = 'a Resto.MakeService(Tezos_rpc__.RPC_encoding).input =
  1. | No_input : unit input
val input_encoding : ([< Resto.meth ], 'prefix, 'params, 'query, 'input, 'output, 'error) service -> 'input input
val output_encoding : ([< Resto.meth ], 'prefix, 'params, 'query, 'input, 'output, 'error) service -> 'output Tezos_rpc__.RPC_encoding.t
val error_encoding : ([< Resto.meth ], 'prefix, 'params, 'query, 'input, 'output, 'error) service -> 'error Tezos_rpc__.RPC_encoding.t
val get_service : ?description:string -> query:'query Resto.Query.t -> output:'output Tezos_rpc__.RPC_encoding.t -> error:'error Tezos_rpc__.RPC_encoding.t -> ('prefix, 'params) Resto.Path.t -> ([ `GET ], 'prefix, 'params, 'query, unit, 'output, 'error) service
val post_service : ?description:string -> query:'query Resto.Query.t -> input:'input Tezos_rpc__.RPC_encoding.t -> output:'output Tezos_rpc__.RPC_encoding.t -> error:'error Tezos_rpc__.RPC_encoding.t -> ('prefix, 'params) Resto.Path.t -> ([ `POST ], 'prefix, 'params, 'query, 'input, 'output, 'error) service
val delete_service : ?description:string -> query:'query Resto.Query.t -> output:'output Tezos_rpc__.RPC_encoding.t -> error:'error Tezos_rpc__.RPC_encoding.t -> ('prefix, 'params) Resto.Path.t -> ([ `DELETE ], 'prefix, 'params, 'query, unit, 'output, 'error) service
val patch_service : ?description:string -> query:'query Resto.Query.t -> input:'input Tezos_rpc__.RPC_encoding.t -> output:'output Tezos_rpc__.RPC_encoding.t -> error:'error Tezos_rpc__.RPC_encoding.t -> ('prefix, 'params) Resto.Path.t -> ([ `PATCH ], 'prefix, 'params, 'query, 'input, 'output, 'error) service
val put_service : ?description:string -> query:'query Resto.Query.t -> input:'input Tezos_rpc__.RPC_encoding.t -> output:'output Tezos_rpc__.RPC_encoding.t -> error:'error Tezos_rpc__.RPC_encoding.t -> ('prefix, 'params) Resto.Path.t -> ([ `PUT ], 'prefix, 'params, 'query, 'input, 'output, 'error) service
val prefix : ('prefix, 'inner_prefix) Resto.Path.t -> ([< Resto.meth ] as 'a, 'inner_prefix, 'params, 'query, 'input, 'output, 'error) service -> ('a, 'prefix, 'params, 'query, 'input, 'output, 'error) service
val subst0 : ([< Resto.meth ] as 'a, 'p, 'p, 'q, 'i, 'o, 'e) service -> ('a, 'p2, 'p2, 'q, 'i, 'o, 'e) service
val subst1 : ([< Resto.meth ] as 'b, 'p, 'p * 'a, 'q, 'i, 'o, 'e) service -> ('b, 'p2, 'p2 * 'a, 'q, 'i, 'o, 'e) service
val subst2 : ([< Resto.meth ] as 'c, 'p, ('p * 'a) * 'b, 'q, 'i, 'o, 'e) service -> ('c, 'p2, ('p2 * 'a) * 'b, 'q, 'i, 'o, 'e) service
val subst3 : ([< Resto.meth ] as 'd, 'p, (('p * 'a) * 'b) * 'c, 'q, 'i, 'o, 'e) service -> ('d, 'p2, (('p2 * 'a) * 'b) * 'c, 'q, 'i, 'o, 'e) service
type ('prefix, 'params, 'error) description_service = ([ `GET ], 'prefix, 'params * string list, Resto.Description.request, unit, (Data_encoding.json_schema * Data_encoding.Binary_schema.t) Resto.Description.directory, 'error) service
val description_service : ?description:string -> 'error Tezos_rpc__.RPC_encoding.t -> ('prefix, 'params) Resto.Path.t -> ('prefix, 'params, 'error) description_service
type !'input request = 'input Resto.MakeService(Tezos_rpc__.RPC_encoding).request = {
  1. meth : Resto.meth;
  2. uri : Uri.t;
  3. input : 'input input;
}
val forge_request : ([< Resto.meth ], unit, 'params, 'query, 'input, 'output, 'error) service -> ?base:Uri.t -> 'params -> 'query -> 'input request
val forge_partial_request : ([< Resto.meth ], 'prefix, 'params, 'query, 'input, 'output, 'error) service -> ?base:Uri.t -> 'params -> 'query -> 'input request
module Internal : sig ... end
OCaml

Innovation. Community. Security.