Mavryk_dal_node_lib.Dal_node_client
class type cctxt = object ... end
Instance of Mavryk_client_base.Client_context
that only handles IOs and RPCs. Can be used for keys and RPCs related commands.
class unix_cctxt : rpc_config:Mavryk_rpc_http_client_unix.RPC_client_unix.config -> cctxt
Instance of cctxt
for linux systems. Relies on Mavryk_rpc_http_client_unix
.
val make_unix_cctxt : Uri.t -> cctxt
make_unix_context endpoint
generates a cctxt with the provided endpoint
.
val get_slot :
cctxt ->
Mavryk_crypto_dal.Cryptobox.Commitment.t ->
Mavryk_crypto_dal.Cryptobox.slot Mavryk_base.TzPervasives.tzresult Lwt.t
val get_slot_pages :
cctxt ->
Mavryk_crypto_dal.Cryptobox.Commitment.t ->
bytes list Mavryk_base.TzPervasives.tzresult Lwt.t
get_slot_pages cctxt header
fetches from the dal node the pages of the slot with header header
.
val get_page_proof :
cctxt ->
int ->
bytes ->
Mavryk_crypto_dal.Cryptobox.page_proof Mavryk_base.TzPervasives.tzresult
Lwt.t
get_page_proof cctxt page_index slot_data
computes and returns the proof of the page whose index and slot are given.