View Source Kadena.Chainweb.P2P.BlockHeader (Kadena v0.19.1)
BlockHeader endpoints implementation for P2P API.
Link to this section Summary
Link to this section Types
@type error() :: {:error, Kadena.Chainweb.Error.t()}
@type json() :: String.t()
@type network_opts() :: Keyword.t()
@type payload() :: Keyword.t()
@type retrieve_by_hash_response() :: Kadena.Chainweb.P2P.BlockHeaderByHashResponse.t() | error()
@type retrieve_response() :: Kadena.Chainweb.P2P.BlockHeaderResponse.t() | error()
Link to this section Functions
@spec retrieve(network_opts :: network_opts()) :: retrieve_response()
@spec retrieve_branches(payload :: payload(), network_opts :: network_opts()) :: retrieve_response()
@spec retrieve_by_hash(block_hash :: String.t(), network_opts :: network_opts()) :: retrieve_by_hash_response()