Usage
Last updated
Last updated
Once you have added SignumJS to your application you usually want to connect to one of the Signum Network nodes to interact with the blockchain.
All you need is to create an API instance to get access to the methods of the blockchain API.
The following example shows how to get an account from the chain.
When using the bundles imported via , you need to use the respective namespace to get access to the any of the functions within a module.
Each module of SignumJS comes with its own namespace
core
sig$
contracts
sig$contracts
crypto
sig$crypto
http
sig$http
monitor
sig$monitor
util
sig$util
The modules are bundled using , 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.