# @near-js/accounts

> Classes encapsulating account-specific functionality

Latest version **2.5.1** (published 2025-11-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @near-js/accounts
pnpm add @near-js/accounts
yarn add @near-js/accounts
bun add @near-js/accounts
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.5.1 |
| Published | 2025-11-06 |
| First published | 2023-03-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 14 |
| Unpacked size | 317.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | nearndy, frol, nearmorgan |

## Links

- npm: https://www.npmjs.com/package/@near-js/accounts
- npm.io page: https://npm.io/package/@near-js/accounts

## Dependencies (14)

- [depd](https://npm.io/package/depd.md) 2.0.0
- [borsh](https://npm.io/package/borsh.md) 1.0.0
- [lru_map](https://npm.io/package/lru_map.md) 0.4.1
- [near-abi](https://npm.io/package/near-abi.md) 0.2.0
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) 1.7.1
- [@near-js/types](https://npm.io/package/@near-js/types.md) 2.5.1
- [@near-js/utils](https://npm.io/package/@near-js/utils.md) 2.5.1
- [@near-js/crypto](https://npm.io/package/@near-js/crypto.md) 2.5.1
- [@near-js/tokens](https://npm.io/package/@near-js/tokens.md) 2.5.1
- [@near-js/signers](https://npm.io/package/@near-js/signers.md) 2.5.1
- [is-my-json-valid](https://npm.io/package/is-my-json-valid.md) ^2.20.6
- [@near-js/keystores](https://npm.io/package/@near-js/keystores.md) 2.5.1
- [@near-js/providers](https://npm.io/package/@near-js/providers.md) 2.5.1
- [@near-js/transactions](https://npm.io/package/@near-js/transactions.md) 2.5.1

## Recent versions

- 2.5.1 (latest) — 2025-11-06
- 1.3.0-next.15 (next) — 2024-08-28
- 2.5.0 — 2025-11-03
- 2.4.1 — 2025-11-03
- 2.4.0 — 2025-10-26
- 2.3.4 — 2025-10-16
- 2.3.3 — 2025-10-01
- 2.3.2 — 2025-09-24
- 2.3.1 — 2025-09-10
- 2.3.0 — 2025-09-03
- 2.2.6 — 2025-08-26
- 2.2.5 — 2025-08-06
- 2.2.4 — 2025-07-24
- 2.2.3 — 2025-07-21
- 2.2.2 — 2025-07-09
- … 42 more at https://npm.io/package/@near-js/accounts/versions

## README

# @near-js/accounts

A collection of classes, functions, and types for interacting with accounts and contracts.

## Modules

- [Account](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account.ts) a class with methods to transfer NEAR, manage account keys, sign transactions, etc.
- [AccountMultisig](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account_multisig.ts) a [multisig](https://github.com/near/core-contracts/tree/master/multisig) deployed `Account` requiring multiple keys to sign transactions
- [Account2FA](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account_2fa.ts) extension of `AccountMultisig` used in conjunction with 2FA provided by [near-contract-helper](https://github.com/near/near-contract-helper)
- [AccountCreator](https://github.com/near/near-api-js/blob/master/packages/accounts/src/account_creator.ts) classes for creating NEAR accounts
- [Contract](https://github.com/near/near-api-js/blob/master/packages/accounts/src/contract.ts) represents a deployed smart contract with view and/or change methods
- [Connection](https://github.com/near/near-api-js/blob/master/packages/accounts/src/connection.ts) a record containing the information required to connect to NEAR RPC
- [Constants](https://github.com/near/near-api-js/blob/master/packages/accounts/src/constants.ts) account-specific constants
- [Types](https://github.com/near/near-api-js/blob/master/packages/accounts/src/types.ts) account-specific types

# License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See [LICENSE](https://github.com/near/near-api-js/blob/master/LICENSE) and [LICENSE-APACHE](https://github.com/near/near-api-js/blob/master/LICENSE-APACHE) for details.

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