package tezos-dal-node-lib

  1. Overview
  2. Docs
class type cctxt = object ... end

Instance of Tezos_client_base.Client_context that only handles IOs and RPCs. Can be used for keys and RPCs related commands.

class unix_cctxt : rpc_config:Tezos_rpc_http_client_unix.RPC_client_unix.config -> cctxt

Instance of cctxt for linux systems. Relies on Tezos_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 -> Tezos_crypto_dal.Cryptobox.Commitment.t -> Tezos_crypto_dal.Cryptobox.slot Tezos_base.TzPervasives.tzresult Lwt.t
val get_shard : cctxt -> Tezos_crypto_dal.Cryptobox.Commitment.t -> int -> Tezos_crypto_dal.Cryptobox.shard Tezos_base.TzPervasives.tzresult Lwt.t
val get_slot_pages : cctxt -> Tezos_crypto_dal.Cryptobox.Commitment.t -> bytes list Tezos_base.TzPervasives.tzresult Lwt.t

get_slot_pages cctxt header fetches from the dal node the pages of the slot with header header.

OCaml

Innovation. Community. Security.