---
title: Using minified bundles
slug: signum/using-minified-bundles
docTags: 
createdAt: 2022-08-30T22:26:45.000Z
---

When using the bundles imported via `<script/>`, you need to use the respective **namespace** to get access to the any of the functions within a module.

:::CodeblockTabs
index.html

```html
<html lang="en">
<head>
    <link rel="stylesheet" href="css/styles.css">
    <!-- Importing the bundles from the CDN -->
    <script type="application/javascript"
            src='https://cdn.jsdelivr.net/npm/@signumjs/core/dist/signumjs.min.js'></script>
</head>
<body>
    <!-- your body -->
    <script type="application/ecmascript" src="src/main.js"></script>
</body>
```

main.js

```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);
})();
```
:::

:::hint{type="info"}
The modules are bundled using [IIFE](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) [II](#), to avoid global naming collisions with your application. Keep also in mind that the bundles do not contain any type information, so your IDE cannot help you with auto-completion. If ever possible try to use a package manager to be more productive and even reduce the applications payload, as modern toolchains extract the used code from a package (tree shaking, dead code elimination).
:::

Each module of SignumJS comes with its own **namespace**

- **core -&#x20;**`sig$`
- **util** - `sig$util`
- **contracts** - `sig$contracts`
- **wallets** - `sig$wallets`
- **crypto** -`sig$crypto`
- **http** - `sig$http`
