Binance Web3 Connector JS
    Preparing search index...

    Function httpRequestFunction

    • Sends an HTTP request and parses the Web3 response envelope.

      The response's data() accessor resolves to the inner data field of the gateway envelope ({ code, msg, data, timestamp }); rate-limit information is parsed from the X-OC-* response headers.

      Type Parameters

      • T

      Parameters

      • axiosArgs: AxiosRequestArgs

        The request arguments to be passed to Axios.

      • Optionalconfiguration: ConfigurationRestAPI

        The configuration options for the request.

      Returns Promise<RestApiResponse<T>>

      A Promise that resolves to the API response, including the data and rate limit headers.