View Source Aptos.Client.Result (Aptos v0.2.4)
The Result
type holds information from API calls to an Aptos node.
Possible results are:
{:ok, headers, body}
{:error, :bad_status, http_status_code, error_info_provided_by_api_endpoint}
Since we are using Tesla, we may also get:
{:error, tesla_error}
Link to this section Summary
Link to this section Types
Link to this section Functions
@spec from_response(Tesla.Env.t()) :: t()
@spec from_tesla(Tesla.Env.result()) :: from_tesla()