# @signumjs/core

> Principal package with functions and models for building Signum Network applications.

Latest version **3.3.7** (published 2026-10-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @signumjs/core
pnpm add @signumjs/core
yarn add @signumjs/core
bun add @signumjs/core
```

## 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 | 3.3.7 |
| Published | 2026-10-17 |
| First published | 2021-06-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 5 |
| Unpacked size | 2.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17 |
| Maintainers | ohager |
| Keywords | signum, signum-network, blockchain, smartcontracts, crypto, cryptography, cryptocoin, signumjs |

## Links

- npm: https://www.npmjs.com/package/@signumjs/core
- Repository: https://github.com/signum-network/signumjs
- Homepage: https://github.com/signum-network/signumjs#readme
- Issues: https://github.com/signum-network/signumjs/issues
- npm.io page: https://npm.io/package/@signumjs/core

## Dependencies (5)

- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.1.2
- [@signumjs/http](https://npm.io/package/@signumjs/http.md) ^3.3.7
- [@signumjs/util](https://npm.io/package/@signumjs/util.md) ^3.3.7
- [@signumjs/crypto](https://npm.io/package/@signumjs/crypto.md) ^3.3.7
- [@signumjs/contracts](https://npm.io/package/@signumjs/contracts.md) ^3.3.7

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 3.3.7 (latest) — 2026-10-17
- 3.3.6 — 2026-10-17
- 3.3.5 — 2026-10-16
- 3.3.4 — 2026-08-02
- 3.3.3 — 2026-08-01
- 3.3.2 — 2026-07-31
- 3.3.1 — 2026-07-31
- 3.3.0 — 2026-07-25
- 3.2.2 — 2026-07-24
- 3.2.1 — 2026-07-24
- 3.2.0 — 2026-07-24
- 3.1.0 — 2026-04-16
- 3.0.10 — 2026-04-05
- 3.0.9 — 2026-03-31
- 3.0.7 — 2026-03-22
- … 91 more at https://npm.io/package/@signumjs/core/versions

## README

# @signumjs/core

Core module to build cool apps for the Signum blockchain platform 

## Installation

SignumJS is an isomorphic SDK and can be used with NodeJS, Web Browser, and even React Native. 
For non-pure Javascript Apps, e.g. PHP, .Net, it is possible to use a bundled/minified version.  

### Using with NodeJS and/or modern web frameworks

Install using [npm](https://www.npmjs.org/):

```
npm install @signumjs/core
```

or using [yarn](https://yarnpkg.com/):

```
yarn add @signumjs/core
```

#### Example

SignumJS provides three client types optimized for different use cases:

1. **Read-Only Client** (~5-10 KB) - For dashboards, explorers, monitoring (no crypto dependencies)
2. **Standard Client** (~40-50 KB) - For most apps - wallets, payments, asset trading (includes signing)
3. **Full Client** (~170-180 KB) - Only needed for encrypted messaging (includes Pako compression)

**Using the Standard Client (recommended for most apps):**

```js
import {createClient} from '@signumjs/core/createClient'
import {Amount} from '@signumjs/util'

const ledger = createClient({
    nodeHost: "https://europe3.testnet.network"
});

// this self-executing file makes turns this file into a starting point of your app

(async () => {
    try {
        const {balanceNQT} = await ledger.account.getAccountBalance('13036514135565182944')
        console.log(`Account Balance: ${Amount.fromPlanck(balanceNQT).toString()}`)
    } catch (e) { // e is of type HttpError (as part of @signumjs/http)
        console.error(`Whooops, something went wrong: ${e.message}`)
    }
})()
```

**Using the Read-Only Client (smallest bundle):**

```js
import {createReadOnlyClient} from '@signumjs/core/createReadOnlyClient'

const ledger = createReadOnlyClient({
    nodeHost: "https://europe3.testnet.network"
});

// Only read operations available, no transaction signing
```

**Using the Full Client (for encrypted messaging):**

```js
import {createClientWithEncryptedMessaging} from '@signumjs/core/createClientWithEncryptedMessaging'

const ledger = createClientWithEncryptedMessaging({
    nodeHost: "https://europe3.testnet.network"
});

// All features including encrypted message support
```

> **Note:** The old `LedgerClientFactory` is deprecated as it bundles all client types together, preventing tree-shaking optimization.


### Using in classic `<script>` 

> This is useful for plain html, js, css and also for PHP, .Net etc

Each package is available as bundled standalone library using IIFE.
This way _SignumJS_ can be used also within `<script>`-Tags.
This might be useful for Wordpress and/or other PHP applications.

Just import the package using the HTML `<script>` tag.

`<script src='https://cdn.jsdelivr.net/npm/@signumjs/core/dist/signumjs.min.js'></script>`


#### Example

```js
(() => {
    const ledger = sig$.LedgerClientFactory.createClient( {nodeHost: "https://europe3.testnet.network"});
    ledger.network.getBlockchainStatus().then(console.log).catch(console.error);
})()
```

## Initialize Crypto Module

The above examples don't need any specific cryptographic features. But when it comes up to signing/creating transactions, deciphering P2P messages you may encounter the following error:

```
No Crypto Adapter provided - Use [Crypto.init()] first
```

You have to initialize the Crypto Module according to your platform somewhere in your apps entry point

__NodeJS__

```ts
import {Crypto} from "@signumjs/crypto"
import {NodeJSCryptoAdapter} from "@signumjs/crypto/adapters"

Crypto.init(new NodeJSCryptoAdapter());
```

__Web/Browser__

```ts
import {Crypto} from "@signumjs/crypto"
import {WebCryptoAdapter} from "@signumjs/crypto/adapters"

Crypto.init(new WebCryptoAdapter());
```

> For React Native/Expo see [here](https://github.com/signum-network/signumjs-react-native-crypto-adapter)


See more here:
[@signumjs/core Online Documentation](https://signum-network.github.io/signumjs/modules/core.html)

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