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

    Interface Client

    interface Client {
        provider<Req, Res>(
            requestOptions: ClientRequest<Req>,
        ): Promise<ClientResponse<Res>>;
    }
    Index

    Methods

    Methods

    • Sends a request to the specified URL with the given options.

      Type Parameters

      • Req
      • Res

      Parameters

      • requestOptions: 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

      Returns Promise<ClientResponse<Res>>