# @portkey/provider-utils

Latest version **2.5.0-alpha.6** (published 2025-10-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @portkey/provider-utils
pnpm add @portkey/provider-utils
yarn add @portkey/provider-utils
bun add @portkey/provider-utils
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.5.0-alpha.6 |
| Published | 2025-10-22 |
| First published | 2023-05-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 40.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | potterp, yellow.m, frankportkey, codingwizard-portkey, aurora_v5_ptk, carbon-lv, sarah999, portkey-zz |

## Links

- npm: https://www.npmjs.com/package/@portkey/provider-utils
- Repository: https://github.com/Portkey-Wallet/portkey-providers
- Homepage: https://portkey.finance/
- Issues: https://github.com/Portkey-Wallet/portkey-providers/issues
- npm.io page: https://npm.io/package/@portkey/provider-utils

## Dependencies (1)

- [@portkey/provider-types](https://npm.io/package/@portkey/provider-types.md) ^2.5.0-alpha.6

## Recent versions

- 2.5.0-alpha.6 (latest) — 2025-10-22
- 2.5.0-alpha.5 — 2025-10-22
- 2.5.0-alpha.4 — 2025-09-29
- 2.5.0-alpha.3 — 2025-09-25
- 2.5.0-alpha.2 — 2025-09-24
- 2.5.0-alpha.1 — 2025-09-23
- 2.5.0-alpha.0 — 2025-09-22
- 2.4.2-alpha.3 — 2025-08-13
- 2.4.2-alpha.2 — 2025-08-13
- 2.4.2-alpha.1 — 2025-08-11
- 2.4.1-alpha.3 — 2025-08-01
- 2.4.0-alpha.12 — 2025-03-11
- 2.4.0-alpha.11 — 2025-03-11
- 2.4.0-alpha.10 — 2025-03-07
- 2.4.0-alpha.9 — 2025-01-23
- … 62 more at https://npm.io/package/@portkey/provider-utils/versions

## README

<p align="center">
  <a href="https://portkeydocs.readthedocs.io/en/pre-release/PortkeyDIDSDK/index.html">
    <img width="200" src= "https://raw.githubusercontent.com/Portkey-Wallet/portkey-web/master/logo.png"/>
  </a>
</p>

<h1 align="center">@portkey/provider-utils</h1>

- [Files](#files)
- [1. crypto.ts](#1-cryptots)
- [2. providerInjection.ts](#2-providerinjectionts)
- [3. response.ts](#3-responsets)

Toolbox for Portkey DAPP Operations.  

## Files

## 1. [crypto.ts](./src/crypto.ts)

A crypto toolset for Portkey DAPPs, making communication between Provider and Operator more secure.  
You can see the [test](./test/crypto.test.ts) code for basic usage.  

## 2. [providerInjection.ts](./src/providerInjection.ts)  

This file detects whether current environment is suitable to inject compiled code of Provider, avoiding the risk of exceptions.

## 3. [response.ts](./src/response.ts)  

This file provides some useful functions to generate formatted response objects.

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