package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tezos_baking_alpha.Node_rpcSource

Sourceval 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.

  • parameter force

    defaults to false

  • returns

    block hash of the newly injected block

Sourceval 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.

  • returns

    operation hash of the newly injected operation

Preapply a block using the node validation mechanism.

Monitor validated blocks/proposals from the node.

Await the current protocol to be activated.

Sourceval get_attestable_slots : Tezos_rpc.Context.generic -> Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash -> attested_level:int32 -> Tezos_dal_node_services.Types.attestable_slots Tezos_base.TzPervasives.tzresult Lwt.t

get_attestable_slots ctxt pkh ~level calls the DAL node RPC GET /profiles/<pkh>/attested_levels/<level>/attestable_slots

register_dal_profiles ctxt delegates calls the DAL node RPC PATCH /profiles/ to register each profile corresponding to a delegate in delegates.

OCaml

Innovation. Community. Security.