# @taquito/http-utils

> HTTP transport utilities for Taquito RPC clients with retry, timeout, and error classification.

Latest version **25.1.3** (published 2026-11-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @taquito/http-utils
pnpm add @taquito/http-utils
yarn add @taquito/http-utils
bun add @taquito/http-utils
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 25.1.3 |
| Published | 2026-11-20 |
| First published | 2019-09-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22 |
| Dependencies | 1 |
| Unpacked size | 145.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 322 |
| Author | ECAD Labs Inc |
| Maintainers | jevonearth, roxaneletourneau, hui-an.yang, gimbrailo.ecad |
| Keywords | taquito, tezos, typescript, http, rpc, fetch, retry, transport |

## Links

- npm: https://www.npmjs.com/package/@taquito/http-utils
- Repository: https://github.com/ecadlabs/taquito
- Homepage: https://taquito.io/
- Issues: https://github.com/ecadlabs/taquito/issues
- npm.io page: https://npm.io/package/@taquito/http-utils

## Dependencies (1)

- [@taquito/core](https://npm.io/package/@taquito/core.md) ^25.1.3

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 25.1.3 (latest) — 2026-11-20
- 25.2.0-beta4 (next) — 2026-11-19
- 25.1.2 — 2026-11-20
- 25.2.0-beta3 — 2026-11-19
- 25.2.0-beta2 — 2026-11-13
- 25.2.0-beta1 — 2026-11-11
- 25.1.1 — 2026-11-10
- 25.2.0-beta0 — 2026-11-01
- 25.1.0 — 2026-10-19
- 25.1.0-rc0 — 2026-10-17
- 25.1.0-beta0 — 2026-10-07
- 25.0.0 — 2026-06-29
- 25.0.0-rc.1 — 2026-06-26
- 25.0.0-beta.1 — 2026-06-22
- 24.3.1-beta.1 — 2026-05-18
- … 249 more at https://npm.io/package/@taquito/http-utils/versions

## README

# Taquito HTTP Utilities package
*TypeDoc style documentation is available [here](https://taquito.io/typedoc/modules/_taquito_http_utils.html)*

`@taquito/http-utils` is an npm package that provides developers with http functionality for Taquito.

## General Information

The `HttpBackend` class contains a `createRequest` method which accepts options to be passed for the HTTP request (url, method, timeout, json, query, headers). This method will help users interact with the RPC with a more familiar HTTP format.

Parameters for `createRequest`:

`url`(string): RPC URL pointing to the Tezos node 
`method`(string): HTTP method of the request
`timeout`(number): request timeout 
`json`(boolean): Parse response into JSON when set to `true`; defaults to `true`
`query`(object): Query that we would like to pass as an HTTP request
`headers`(object): HTTP request header


## Install
The package(s) need to be installed as follows
```
npm install @taquito/http-utils
```

## Usage
Create an instance of `HttpBackend` and call it's member function `createRequest` to construct an HTTP request. 
```ts
import { HttpBackend } from '@taquito/http-utils';

const httpBackend = new HttpBackend();
const response = httpBackend.createRequest<string>({
    url: `/chains/${chain}/blocks/${block}/context/contracts/${address}/script`,
    method: 'GET',
    headers: { 'Content-Type': 'text/plain; charset=utf-8' },
    json: false
});

```

## Additional Info
Taquito uses the built-in `globalThis.fetch` (requires Node.js >= 22 or a browser environment).

For diagnostics, you can emit request timing logs with:

`TAQUITO_HTTP_TRACE=true`

Optionally adjust the slow-request threshold (milliseconds):

`TAQUITO_HTTP_TRACE_SLOW_MS=1500`

See the top-level https://github.com/ecadlabs/taquito file for details on reporting issues, contributing, and versioning.


## Disclaimer

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---
_Source: https://npm.io/package/@taquito/http-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
