package tezos-proxy

  1. Overview
  2. Docs

The class http_local_ctxt creates an RPC context that executes some RPCs locally and delegates others over http. Arguments are:

  • an instance of RPC_context.json to perform RPC calls (for delegation over http), and whether tezos-proxy-server or tezos-client is running
  • the protocol-dependent implementation of the proxy (the proxy mode obtains data from endpoints with protocol-dependent RPCs).
inherit Tezos_base__TzPervasives.RPC_context.t
method generic_json_call : Tezos_rpc.RPC_service.meth -> ?body:Data_encoding.json -> Uri.t -> (Data_encoding.json, Data_encoding.json option) Tezos_base__TzPervasives.RPC_context.rest_result Lwt.t
method generic_media_type_call : Tezos_rpc.RPC_service.meth -> ?body:Data_encoding.json -> Uri.t -> Tezos_base__TzPervasives.RPC_context.generic_call_result Tezos_error_monad.Error_monad.tzresult Lwt.t
method base : Uri.t