Core Module
3 min

API Reference | |
|---|---|
NPM Package | |
CDN URL | |
IIFE namespace | sig$ |
Installation
<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, for almost all possible API endpoints.
(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);
})();