Taquito TypeDocs
    Preparing search index...

    HTTP client used by Taquito to communicate with Tezos RPC nodes.

    Uses globalThis.fetch (Node.js >= 22 built-in or browser native). Retries retriable transport errors (socket resets, DNS, timeouts) with exponential backoff and jitter. Configure via environment variables:

    • TAQUITO_HTTP_RETRY_COUNT - max retries (default 1)
    • TAQUITO_HTTP_RETRY_BASE_MS - base delay in ms (default 100)
    • TAQUITO_HTTP_TRACE - emit JSON request logs when true or 1
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Send an HTTP request to the given URL, with automatic retries on transport errors.

      Type Parameters

      • T

      Parameters

      • options: HttpRequestOptions

        Request configuration (URL, method, timeout, headers, etc.).

      • Optionaldata: string | object

        Request body, serialized to JSON via JSON.stringify.

      Returns Promise<T>

      The parsed JSON response (or raw text when json: false).

      HttpResponseError when the server returns HTTP status >= 400.

      HttpTimeoutError when the request exceeds the configured timeout.

      HttpRequestFailed for transport-level failures (network, DNS, socket, etc.).