View Source Kadena.Chainweb.P2P.BlockHeader (Kadena v0.19.0)

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()
Link to this type

retrieve_by_hash_response()

View Source
@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

Link to this function

retrieve(network_opts \\ [])

View Source
@spec retrieve(network_opts :: network_opts()) :: retrieve_response()
Link to this function

retrieve_branches(payload \\ [], network_opts \\ [])

View Source
@spec retrieve_branches(payload :: payload(), network_opts :: network_opts()) ::
  retrieve_response()
Link to this function

retrieve_by_hash(block_hash, network_opts \\ [])

View Source
@spec retrieve_by_hash(block_hash :: String.t(), network_opts :: network_opts()) ::
  retrieve_by_hash_response()