Current section
Files
Jump to
Current section
Files
lib/rpc/endpoints/spec.ex
defmodule Soroban.RPC.Endpoint.Spec do
@moduledoc """
Specifies the callbacks to build the Soroban's endpoints.
"""
alias Soroban.RPC.{Error, EventsPayload, HTTPError, Server}
@type response :: {:ok, struct()} | {:error, Error.t() | HTTPError.t()}
@type params :: String.t() | EventsPayload.t() | keyword() | nil
@callback request(server :: Server.t(), params :: params()) :: response()
end