View Source Kadena.Chainweb.P2P.BlockPayload (Kadena v0.19.1)
BlockPayload endpoints implementation for P2P API.
Link to this section Summary
Link to this section Types
@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()]
@type retrieve_batch_response() :: {:ok, Kadena.Chainweb.P2P.BlockPayloadBatchResponse.t()} | error()
@type retrieve_response() :: {:ok, Kadena.Chainweb.P2P.BlockPayloadResponse.t()} | error()
@type with_outputs_response() :: {:ok, Kadena.Chainweb.P2P.BlockPayloadWithOutputsResponse.t()} | error()
Link to this section Functions
@spec batch_with_outputs( payload_hashes :: payload_hashes(), network_opts :: network_opts() ) :: batch_with_outputs_response()
@spec retrieve(payload_hash :: String.t(), network_opts :: network_opts()) :: retrieve_response()
@spec retrieve_batch( payload_hashes :: payload_hashes(), network_opts :: network_opts() ) :: retrieve_batch_response()
@spec with_outputs(payload_hash :: String.t(), network_opts :: network_opts()) :: with_outputs_response()