View Source Soroban.RPC.Client.Default (Soroban v0.20.0)

Hackney HTTP client implementation. This implementation allows you to use your own JSON encoding library. The default is Jason.

Summary

Types

@type body() :: binary()
@type client_response() :: success_response() | error_response()
@type error_message() :: String.t()
@type error_response() :: {:error, status(), headers(), body()} | {:error, any()}
@type headers() :: [{binary(), binary()}, ...]
@type parsed_response() ::
  {:ok, map()}
  | {:error, Soroban.RPC.Error.t()}
  | {:error, Soroban.RPC.HTTPError.t()}
@type status() :: pos_integer()
@type success_response() :: {:ok, status(), headers(), body()}