Development
...
Getting Started
Usage
1 min
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 a ledger client instance to get access to the methods of the blockchain api the following example shows how to get an account from the chain 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); })();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); })(); it is essential to understand the concept of https //developer mozilla org/en us/docs/web/javascript/reference/statements/async function and https //developer mozilla org/en us/docs/web/javascript/guide/using promises in javascript many functions of signumjs require to communicate with remote servers and therefore you need to be familiar with asynchronous javascript