package tezos-client-base

  1. Overview
  2. Docs

wait_for_operation_inclusion chain ~predecessors ~confirmations oph waits for `oph` to appears in the main chain with at least `confirmations`. It returns the hash of the block that contains the operation and the operation position in the block.

This functions also looks for the operations in the `predecessors` of the initial chain head.

lookup an operation in predecessors previous blocks, starting from head

val wait_for_bootstrapped : ?retry: ((Client_context.full as 'a -> ((Tezos_base.TzPervasives.Block_hash.t * Tezos_base.TzPervasives.Time.Protocol.t) Lwt_stream.t * Tezos_rpc.Context.stopper) Tezos_base.TzPervasives.tzresult Lwt.t) -> 'a -> ((Tezos_base.TzPervasives.Block_hash.t * Tezos_base.TzPervasives.Time.Protocol.t) Lwt_stream.t * Tezos_rpc.Context.stopper) Tezos_base.TzPervasives.tzresult Lwt.t) -> 'a -> unit Tezos_base.TzPervasives.tzresult Lwt.t

returns when the node consider itself as bootstrapped.

Function retry specifies how to behave in order to connect to the node. The default is the identity which correspond to simply calling the RPC. As an example, the endorser tries 5 times with delays in between attempts when the connection fails.

OCaml

Innovation. Community. Security.