View Source Soroban.RPC.Endpoint.Spec behaviour (Soroban v0.11.0)

Specifies the callbacks to build the Soroban's endpoints.

Link to this section Summary

Link to this section Types

@type params() :: String.t() | Soroban.RPC.EventsPayload.t() | nil
@type response() ::
  {:ok, struct()} | {:error, Soroban.RPC.Error.t() | Soroban.RPC.HTTPError.t()}

Link to this section Callbacks

@callback request(params :: params()) :: response()