@aptos-labs/ts-sdk - v3.1.1
    Preparing search index...

    Function request

    • Sends a request using the specified options and returns the response.

      Type Parameters

      • Req
      • Res

      Parameters

      • options: ClientRequest<Req>

        The options for the request.

        Represents a client for making requests to a service provider.

        • Optionalbody?: Req
        • OptionalcontentType?: string
        • Optionalheaders?: Record<string, any>
        • method: "GET" | "POST"
        • OptionaloriginMethod?: string
        • Optionaloverrides?: ClientHeadersType & { API_KEY?: string; WITH_CREDENTIALS?: boolean } & {
              AUTH_TOKEN?: string;
          }
        • Optionalparams?: any
        • url: string
      • client: Client

        The client used to make the request.

      Returns Promise<ClientResponse<Res>>

      The response from the request.