View Source Kadena.Chainweb.P2P.Cut (Kadena v0.19.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
@spec publish(cut :: cut(), network_opts :: network_opts()) :: response()
@spec retrieve(network_opts :: network_opts()) :: response()