Interface AptosResponse<Req, Res>

The API response type

the response status. i.e. 200

the response message

the response data

the url the request was made to

the response headers

(optional) - the request object

(optional) - the request object

interface AptosResponse<Req, Res> {
    config?: any;
    data: Res;
    headers: any;
    request?: Req;
    status: number;
    statusText: string;
    url: string;
}

Type Parameters

  • Req
  • Res

Properties

config?: any
data: Res
headers: any
request?: Req
status: number
statusText: string
url: string