Octez_agnostic_baker.Rpc_servicesval request_uri :
node_addr:string ->
uri:string ->
(Cohttp_lwt_unix.Response.t * Cohttp_lwt.Body.t)
Tezos_base.TzPervasives.tzresult
Lwt.trequest_uri ~node_addr ~uri issues an HTTP GET request to the ~uri and returns the response and its body. In case the connection is refused, it fails with a connection error on ~node_addr.
val get_level :
node_addr:string ->
(int, Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace)
Stdlib.result
Lwt.tget_level ~node_addr retrieves the current block level from the node at ~node_addr.
val get_block_hash :
node_addr:string ->
(Tezos_base.TzPervasives.Block_hash.t,
Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace)
Stdlib.result
Lwt.tget_block_hash ~node_addr retrieves the hash of the current block from the node at ~node_addr.
val get_next_protocol_hash :
node_addr:string ->
Tezos_base.TzPervasives.Protocol_hash.t Tezos_base.TzPervasives.tzresult
Lwt.tget_next_protocol_hash ~node_addr retrieves the protocol hash from the next_protocol field in the metadata of the current block, as seen by the node at ~node_addr.
get_current_period ~node_addr retrieves the current voting period information from the node at ~node_addr. It returns a pair (kind, remaining) where:
kind is a string representing the voting period kind, andremaining is the number of blocks remaining until the end of the voting period.val get_current_period :
node_addr:string ->
(string * int) Tezos_base.TzPervasives.tzresult Lwt.tval get_dal_health :
Tezos_rpc.Context.generic ->
Tezos_dal_node_services.Types.Health.t Tezos_base.TzPervasives.tzresult Lwt.tget_dal_health ctxt calls the DAL node RPC 'GET /health'