Binance Web3 Connector JS
    Preparing search index...
    • Generic function to send a request with optional API key and signature.

      Type Parameters

      • T

      Parameters

      • configuration: ConfigurationRestAPI

        The configuration containing API credentials and HTTP options.

      • endpoint: string

        The API endpoint to call.

      • method: "GET" | "POST" | "DELETE" | "PUT" | "PATCH"

        HTTP method to use (GET, POST, DELETE, etc.).

      • queryParams: Record<string, unknown> = {}

        Query parameters for the request.

      • bodyParams: Record<string, unknown> = {}

        Body parameters for the request.

      • headerParams: Record<string, unknown> = {}

        Per-request headers.

      • Optional_timeUnit: TimeUnit

        Reserved for parity with @binance/common sendRequest signature.

      • options: { isSigned?: boolean } = {}

        Additional request options.

        • OptionalisSigned?: boolean

          Whether to sign the request with HMAC-SHA256 or Ed25519.

      Returns Promise<RestApiResponse<T>>

      A promise resolving to the response data object.