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

Cut endpoints implementation for P2P API.

Link to this section Summary

Link to this section Types

@type cut() :: Kadena.Chainweb.Cut.t()
@type error() :: {:error, Kadena.Chainweb.Error.t()}
@type json() :: String.t()
@type location() :: String.t()
@type network_id() :: :mainnet01 | :testnet04
@type network_opts() :: Keyword.t()
@type origin() :: map() | nil
@type response() :: {:ok, Kadena.Chainweb.P2P.CutResponse.t()} | error()

Link to this section Functions

Link to this function

publish(cut, network_opts \\ [])

View Source
@spec publish(cut :: cut(), network_opts :: network_opts()) :: response()
Link to this function

retrieve(network_opts \\ [])

View Source
@spec retrieve(network_opts :: network_opts()) :: response()