---
title: Core Module
slug: signum/core-module
docTags: 
createdAt: 2022-08-30T21:23:16.000Z
---

::Image[]{src="https://api.archbee.com/api/optimize/l2AIpSUU6srSQmG1-K2bb/MXQNPYCJCzx_5gT1iklqi_earth.png" size="20" width="512" height="512" position="center" showCaption="false"}



| API Reference  | [SignumJS Core](https://signum-network.github.io/signumjs/modules/core.html)                                                         |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| NPM Package    | [@signumjs/core](https://www.npmjs.com/package/@signumjs/core)                                                                       |
| CDN URL        | [https://cdn.jsdelivr.net/npm/@signumjs/core/dist/signumjs.min.js](https://cdn.jsdelivr.net/npm/@signumjs/core/dist/signumjs.min.js) |
| IIFE namespace | `sig$`                                                                                                                               |

## Installation

:::CodeblockTabs
npm

```shell
npm i @signumjs/core
```

yarn

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

\<script/>

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

<!--  namespace is sig$ -->
<script >
    const ledger = sig$.LedgerClientFactory.create({
        nodeHost: 'https://localhost:6876'
    });
</script>
```
:::

## Basic Usage

The core module provides a convenient wrapper around the [Node HTTP API](docId\:YynXYcqbLmbWflxZoM4C6), for almost all possible API endpoints.&#x20;

:::CodeblockTabs
```javascript
const {LedgerClientFactory} = require('@signumjs/core');

(async () => {
    const ledger = LedgerClientFactory.create({
        nodeHost: 'https://europe.signum.network',
    });

    const account = await ledger.account.getAccount({accountId: '16107620026796983538'});
    console.log('Account', account);
})();
```

```typescript
import {LedgerClientFactory} from '@signumjs/core';

(async () : Promise<void> => {
    const ledger = LedgerClientFactory.create({
        nodeHost: 'https://europe.signum.network',
    });

    const account = await ledger.account.getAccount({accountId: '16107620026796983538'});
    console.log('Account', account);
})();
```

\<script/>

```javascript
(async () => {
    // the 'namespace' of @signum/core is sig$
    const ledger = sig$.LedgerClientFactory.create({
        nodeHost: 'https://europe.signum.network',
    });

    const account = await ledger.account.getAccount({accountId: '16107620026796983538'});
    console.log('Account', account);
})();
```
:::
