# @wharfkit/wallet-plugin-privatekey

> A template to create wallet plugins for use with @wharfkit/session.

Latest version **4.0.0** (published 2026-09-23) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @wharfkit/wallet-plugin-privatekey
pnpm add @wharfkit/wallet-plugin-privatekey
yarn add @wharfkit/wallet-plugin-privatekey
bun add @wharfkit/wallet-plugin-privatekey
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-09-23 |
| First published | 2023-02-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.19.0 |
| Dependencies | 1 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | dafuga01, jesta |

## Links

- npm: https://www.npmjs.com/package/@wharfkit/wallet-plugin-privatekey
- Repository: https://github.com/wharfkit/js
- Homepage: https://wharfkit.com/plugins/wallet-plugin-privatekey
- Issues: https://github.com/wharfkit/js/issues
- npm.io page: https://npm.io/package/@wharfkit/wallet-plugin-privatekey

## Dependencies (1)

- [@wharfkit/session](https://npm.io/package/@wharfkit/session.md) 4.0.0

## Recent versions

- 4.0.0 (latest) — 2026-09-23
- 4.0.0-rc7 (next) — 2026-09-11
- 0.3.0-ui-16 (ui) — 2023-02-28
- 4.0.0-rc6 — 2026-09-02
- 4.0.0-rc5 — 2026-09-02
- 4.0.0-rc4 — 2026-09-01
- 4.0.0-rc3 — 2026-08-30
- 4.0.0-rc2 — 2026-08-26
- 4.0.0-rc1 — 2026-08-26
- 1.1.0 — 2023-11-10
- 1.0.0 — 2023-07-31
- 1.0.0-beta1 — 2023-07-31
- 0.5.0 — 2023-05-25
- 0.4.0 — 2023-04-18
- 0.3.0 — 2023-03-03
- … 9 more at https://npm.io/package/@wharfkit/wallet-plugin-privatekey/versions

## README

# @wharfkit/wallet-plugin-privatekey

A @wharfkit/session WalletPlugin implementation that takes a private key and blindly signs transactions.

Primarily designed to be used in controlled environments (such as server side applications) or for testing purposes.

## Usage

```ts
import {Session} from '@wharfkit/session'
import {WalletPluginPrivateKey} from '@wharfkit/wallet-plugin-privatekey'

// Establish a session and include the wallet plugin
const session = new Session({
    // ... other options
    walletPlugin: new WalletPluginPrivateKey({
        privateKey: '5Jtoxgny5tT7NiNFp1MLogviuPJ9NniWjnU4wKzaX4t7pL4kJ8s',
    }),
})

// Calling transact will use this plugin to automatically sign with the provided key
const result = session.transact({
    actions: [
        // your actions
    ],
})
```

## Contributing

This package is developed in the [wharfkit/js](https://github.com/wharfkit/js) monorepo. See its README for how to build and test.

---

Made with ☕️ & ❤️ by [Greymass](https://greymass.com), if you find this useful please consider [supporting us](https://greymass.com/support-us).

---
_Source: https://npm.io/package/@wharfkit/wallet-plugin-privatekey · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
