View Source Kadena.Chainweb.P2P.BlockPayload (Kadena v0.17.1)

BlockPayload endpoints implementation for P2P API.

Link to this section Summary

Link to this section Types

Link to this type

batch_with_outputs_response()

View Source
@type batch_with_outputs_response() ::
  {:ok, Kadena.Chainweb.P2P.BlockPayloadBatchWithOutputsResponse.t()} | error()
@type error() :: {:error, Kadena.Chainweb.Error.t()}
@type json() :: String.t()
@type network_opts() :: Keyword.t()
@type payload_hashes() :: [String.t()]
Link to this type

retrieve_batch_response()

View Source
@type retrieve_batch_response() ::
  {:ok, Kadena.Chainweb.P2P.BlockPayloadBatchResponse.t()} | error()
@type retrieve_response() ::
  {:ok, Kadena.Chainweb.P2P.BlockPayloadResponse.t()} | error()
Link to this type

with_outputs_response()

View Source
@type with_outputs_response() ::
  {:ok, Kadena.Chainweb.P2P.BlockPayloadWithOutputsResponse.t()} | error()

Link to this section Functions

Link to this function

batch_with_outputs(payload_hashes \\ [], network_opts \\ [])

View Source
@spec batch_with_outputs(
  payload_hashes :: payload_hashes(),
  network_opts :: network_opts()
) ::
  batch_with_outputs_response()
Link to this function

retrieve(payload_hash, network_opts \\ [])

View Source
@spec retrieve(payload_hash :: String.t(), network_opts :: network_opts()) ::
  retrieve_response()
Link to this function

retrieve_batch(payload_hashes \\ [], network_opts \\ [])

View Source
@spec retrieve_batch(
  payload_hashes :: payload_hashes(),
  network_opts :: network_opts()
) ::
  retrieve_batch_response()
Link to this function

with_outputs(payload_hash, network_opts \\ [])

View Source
@spec with_outputs(payload_hash :: String.t(), network_opts :: network_opts()) ::
  with_outputs_response()