Tezos_baking_alpha.Node_rpc
val inject_block :
Tezos_client_alpha.Protocol_client_context.full ->
?force:bool ->
chain:Tezos_shell_services.Shell_services.chain ->
Tezos_protocol_alpha.Protocol.Alpha_context.Block_header.t ->
Tezos_base.Operation.t list list ->
Tezos_base.TzPervasives.Block_hash.t Tezos_base.TzPervasives.tzresult Lwt.t
Inject a block.
val inject_operation :
Tezos_client_alpha.Protocol_client_context.full ->
chain:Tezos_shell_services.Shell_services.chain ->
Tezos_protocol_alpha.Protocol.Alpha_context.packed_operation ->
Tezos_base.TzPervasives.Operation_hash.t Tezos_base.TzPervasives.tzresult
Lwt.t
Inject an operation.
val preapply_block :
Tezos_client_alpha.Protocol_client_context.full ->
chain:Tezos_shell_services.Shell_services.chain ->
head:Tezos_base.TzPervasives.Block_hash.t ->
timestamp:Tezos_base.TzPervasives.Time.Protocol.t ->
protocol_data:Tezos_protocol_alpha.Protocol.block_header_data ->
Tezos_protocol_alpha.Protocol.Alpha_context.packed_operation list list ->
(Tezos_base.Block_header.shell_header
* Tezos_base.TzPervasives.error Tezos_shell_services.Preapply_result.t list)
Tezos_base.TzPervasives.tzresult
Lwt.t
Preapply a block using the node validation mechanism.
val monitor_valid_proposals :
Tezos_client_alpha.Protocol_client_context.rpc_context ->
chain:Tezos_shell_services.Shell_services.chain ->
?cache:Baking_state.block_info Baking_cache.Block_cache.t ->
unit ->
(Baking_state.proposal Lwt_stream.t * (unit -> unit))
Tezos_base.TzPervasives.tzresult
Lwt.t
Monitor validated blocks/proposals from the node.
val monitor_heads :
Tezos_client_alpha.Protocol_client_context.rpc_context ->
chain:Tezos_shell_services.Shell_services.chain ->
?cache:Baking_state.block_info Baking_cache.Block_cache.t ->
unit ->
(Baking_state.proposal Lwt_stream.t * (unit -> unit))
Tezos_base.TzPervasives.tzresult
Lwt.t
Monitor heads from the node.
val await_protocol_activation :
Tezos_client_alpha.Protocol_client_context.rpc_context ->
chain:Tezos_shell_services.Shell_services.chain ->
unit ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
Await the current protocol to be activated.
val fetch_dal_config :
Tezos_client_alpha.Protocol_client_context.rpc_context ->
Tezos_crypto_dal.Cryptobox.Config.t Tezos_base.TzPervasives.tzresult Lwt.t
val dal_attestable_slots :
Tezos_rpc.Context.generic ->
attestation_level:int32 ->
Baking_state.delegate_slot list ->
Baking_state.dal_attestable_slots
dal_attestable_slots ctxt ~attestation_level delegates_slots
calls the DAL node RPC GET /profiles/<pkh>/attested_levels/<level>/attestable_slots/<pkh> for each of the delegates in delegate_slots
and returns the corresponding promises.
val get_dal_profiles :
Tezos_rpc.Context.generic ->
Tezos_dal_node_services.Types.profile Tezos_base.TzPervasives.tzresult Lwt.t
get_dal_profiles ctxt delegates
calls the DAL node RPC GET /profiles/ to retrieve the DAL node's profiles.
val register_dal_profiles :
Tezos_rpc.Context.generic ->
Tezos_baking_alpha.Signature.Public_key_hash.t list ->
unit Tezos_base.TzPervasives.tzresult Lwt.t
register_dal_profiles ctxt delegates
calls the DAL node RPC PATCH /profiles/ to register each profile corresponding to a delegate in delegates
.
val get_dal_health :
Tezos_rpc.Context.generic ->
Tezos_dal_node_services.Types.Health.t Tezos_base.TzPervasives.tzresult Lwt.t
get_dal_health ctxt
calls the DAL node RPC 'GET /health'