tezos-rpc

Tezos: library of auto-documented RPCs (service and hierarchy descriptions)
Library tezos-rpc
class type 'pr gen_simple = object ... end
class type 'pr gen_streamed = object ... end
class type 'pr gen = object ... end
class type simple = object ... end
class type streamed = object ... end
class type t = object ... end
type ('o, 'e) rest_result = [ `Ok of 'o | `Conflict of 'e | `Error of 'e | `Forbidden of 'e | `Not_found of 'e | `Gone of 'e | `Unauthorized of 'e ] Tezos_error_monad.Error_monad.tzresult
class type json = object ... end
class 'pr of_directory : 'pr RPC_directory.t -> 'pr gen
type Tezos_error_monad.Error_monad.error +=
| Not_found of {
meth : RPC_service.meth;
uri : Uri.t;
}
| Gone of {
meth : RPC_service.meth;
uri : Uri.t;
}
| Generic_error of {
meth : RPC_service.meth;
uri : Uri.t;
}
val make_call : ( [< Resto.meth ], unit, 'p, 'q, 'i, 'o ) RPC_service.t -> simple -> 'p -> 'q -> 'i -> 'o Tezos_error_monad.Error_monad.tzresult Lwt.t
val make_call1 : ( [< Resto.meth ], unit, unit * 'a, 'q, 'i, 'o ) RPC_service.t -> simple -> 'a -> 'q -> 'i -> 'o Tezos_error_monad.Error_monad.tzresult Lwt.t
val make_call2 : ( [< Resto.meth ], unit, (unit * 'a) * 'b, 'q, 'i, 'o ) RPC_service.t -> simple -> 'a -> 'b -> 'q -> 'i -> 'o Tezos_error_monad.Error_monad.tzresult Lwt.t
val make_call3 : ( [< Resto.meth ], unit, ((unit * 'a) * 'b) * 'c, 'q, 'i, 'o ) RPC_service.t -> simple -> 'a -> 'b -> 'c -> 'q -> 'i -> 'o Tezos_error_monad.Error_monad.tzresult Lwt.t
type stopper = unit -> unit
val make_streamed_call : ( [< Resto.meth ], unit, 'p, 'q, 'i, 'o ) RPC_service.t -> streamed -> 'p -> 'q -> 'i -> ('o Lwt_stream.t * stopper) Tezos_error_monad.Error_monad.tzresult Lwt.t