package tezos-protocol-005-PsBABY5H
type t = {
level : Alpha_context.Raw_level.t;
delegate : Tezos_protocol_environment_005_PsBABY5H.Signature.Public_key_hash.t;
slots : int list;
estimated_time : Alpha_context.Timestamp.t option;
}
val get :
'a Tezos_protocol_environment_005_PsBABY5H.RPC_context.simple ->
?levels:Alpha_context.Raw_level.t list ->
?cycles:Alpha_context.Cycle.t list ->
?delegates:
Tezos_protocol_environment_005_PsBABY5H.Signature.public_key_hash list ->
'a ->
t list Tezos_protocol_environment_005_PsBABY5H.Error_monad.shell_tzresult
Tezos_protocol_environment_005_PsBABY5H.Lwt.t
Retrieves the delegates allowed to endorse a block.
By default, it gives the endorsement slots for bakers that have at least one in the next block.
Parameters levels
and cycles
can be used to specify the (valid) level(s) in the past or future at which the endorsement rights have to be returned. Parameter delegates
can be used to restrict the results to the given delegates. Returns the list of endorsement slots. Also returns the minimal timestamps that correspond to these slots.
Timestamps are omitted for levels in the past, and are only estimates for levels later that the next block, based on the hypothesis that all predecessor blocks were baked at the first priority.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>