View Source Soroban.RPC.Request (Soroban v0.11.0)
A module to work with Soroban RPC requests.
Requests are composed in a functional manner.
The request does not happen until it is configured and passed to perform/1
.
Link to this section Summary
Link to this section Types
@type endpoint() :: String.t()
@type opts() :: Keyword.t()
@type params() :: map() | nil
@type parsed_response() :: {:ok, struct()} | {:error, Soroban.RPC.Error.t()} | {:error, Soroban.RPC.HTTPError.t()}
@type response() :: {:ok, map()} | {:error, Soroban.RPC.Error.t()} | {:error, Soroban.RPC.HTTPError.t()}
@type url() :: String.t()