Development
...
Getting Started
Usage

Using minified bundles

2min

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.

index.html
main.js


The modules are bundled using IIFE , 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 - sig$
  • util - sig$util
  • contracts - sig$contracts
  • wallets - sig$wallets
  • crypto -sig$crypto
  • http - sig$http