Module Network.Get_status

module Get_status_inner : sig ... end
include module type of struct include Get_status_inner end
type t_genesisBlock_protocolState_consensusState = Get_status_inner.t_genesisBlock_protocolState_consensusState = {
blockHeight : Graphql_lib.Scalars.Length.t;
}
type t_genesisBlock_protocolState = Get_status_inner.t_genesisBlock_protocolState = {
consensusState : t_genesisBlock_protocolState_consensusState;
}
type t_genesisBlock = Get_status_inner.t_genesisBlock = {
stateHash : Scalars.String_json.t;
protocolState : t_genesisBlock_protocolState;
}
type t_bestChain_protocolState_blockchainState = Get_status_inner.t_bestChain_protocolState_blockchainState = {
utcDate : Serializing.Int64.t;
}
type t_bestChain_protocolState_consensusState = Get_status_inner.t_bestChain_protocolState_consensusState = {
blockHeight : Serializing.Int64.t;
}
type t_bestChain = Get_status_inner.t_bestChain = {
stateHash : Scalars.String_json.t;
protocolState : t_bestChain_protocolState;
}
type t_daemonStatus_peers = Get_status_inner.t_daemonStatus_peers = {
peerId : string;
}
type t_daemonStatus = Get_status_inner.t_daemonStatus = {
chainId : string;
peers : t_daemonStatus_peers array;
}
type t_syncStatus = [
| `CONNECTING
| `LISTENING
| `OFFLINE
| `BOOTSTRAP
| `SYNCED
| `CATCHUP
]
type t = Get_status_inner.t = {
genesisBlock : t_genesisBlock;
bestChain : t_bestChain array option;
daemonStatus : t_daemonStatus;
syncStatus : t_syncStatus;
initialPeers : string array;
}
type t_variables = unit
val query : string

The GraphQL query

val parse : Raw.t -> t

Parse the JSON-compatible GraphQL data to ReasonML data types

val serialize : t -> Raw.t

Serialize the ReasonML GraphQL data that was parsed using the parse function back to the original JSON compatible data

val serializeVariables : unit -> Raw.t_variables
val makeVariables : unit -> t_variables
val makeDefaultVariables : unit -> t_variables
val unsafe_fromJson : Graphql_ppx_runtime.Json.t -> Raw.t
val toJson : Raw.t -> Graphql_ppx_runtime.Json.t
val variablesToJson : Raw.t_variables -> Graphql_ppx_runtime.Json.t
include module type of struct include Graphql_lib.Serializing.ExtendQuery(Get_status_inner) end
val make : Get_status_inner.t_variables -> < parse : Yojson.Basic.t -> Get_status_inner.t ; query : Base.string ; variables : Yojson.Basic.t >