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

Specifies the callbacks to build the Soroban's endpoints.

Summary

Types

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

Callbacks

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