package octez-shell-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/octez-shell-libs.shell-services/Tezos_shell_services/Block_services/index.html
Module Tezos_shell_services.Block_servicesSource
type block = [ | `Genesis(*The genesis block
*)| `Head of int(*The
*)nth predecessor of thecurrent_headblock ifn > 0. Ifn = 0, represents thecurrent_head.nshould not be negative since thecurrent_headdoes not have successors.| `Alias of [ `Caboose | `Checkpoint | `Savepoint ] * int(*The
*)nth predecessor of thecaboose, thecheckpointor thesavepointifn > 0. Ifn = 0, represents the block itself. Ifn < 0, represents thenth successor.| `Hash of Tezos_base.TzPervasives.Block_hash.t * int(*The
*)nth predecessor of the block of givenhashifn > 0. Ifn = 0, represents the block itself. Otherwise, ifn < 0, represents thenth successor.| `Level of Int32.t(*The block at a given
*)level
]A representation of a block's position relatively to a known block of a chain.
A block range in the form level..level. Currently, this function supports only level..level.
val raw_context_insert :
(string list * Proof.raw_context) ->
Proof.raw_context ->
Proof.raw_contextraw_context_insert (k,v) c inserts a key-value pair (k,v) in a raw_context c. If k collides to a existing sub-tree in c, the sub-tree is replaced by a new key-value pair.
type protocols = {current_protocol : Tezos_base.TzPervasives.Protocol_hash.t;next_protocol : Tezos_base.TzPervasives.Protocol_hash.t;
}val protocols :
Tezos_rpc.Context.simple ->
?chain:chain ->
?block:block ->
unit ->
protocols Tezos_base.TzPervasives.tzresult Lwt.t