Default per-attempt request timeout in milliseconds (default 30000).
Send an HTTP request to the given URL, with automatic retries on retriable transport
errors and transient gateway statuses (502, 503, 504) for allowlisted requests.
The timeout covers headers and body reads for each attempt. Non-abort errors
reading a successful response body, including JSON parse errors, propagate unchanged.
Failures reading an HTTP error response body retain the status-based retry policy.
Request configuration (URL, method, per-attempt timeout, headers, etc.).
Optionaldata: string | object
Request body, serialized to JSON via JSON.stringify.
The parsed JSON response (or raw text when json: false).
HttpResponseError when the server returns HTTP status >= 400 (after any applicable retries).
HttpTimeoutError when an attempt times out before response headers or while reading a successful response body.
HttpRequestFailed for transport failures before reading a successful body.
Fetch binary data without text decoding, with a bound on buffered response bytes.
ProtectedserializeSerialize an object into a URL query string (including the leading ?).
Optionalobj: ObjectType
HTTP client used by Taquito to communicate with Tezos RPC nodes.
Uses
globalThis.fetch(Node.js >= 22 built-in or browser native). Retries eligible transport failures, such as socket resets and DNS errors, and transient gateway HTTP statuses (502,503,504) on allowlisted requests (GETand safe RPCPOSTendpoints) with exponential backoff and jitter. Requests that fail with HttpTimeoutError are not retried. Configure via environment variables:TAQUITO_HTTP_RETRY_COUNT- max retries (default1)TAQUITO_HTTP_RETRY_BASE_MS- base delay in ms (default100)TAQUITO_HTTP_TRACE- emit JSON request logs whentrueor1