---
title: Usage
slug: signum/usage
docTags: 
createdAt: 2022-08-30T22:22:52.000Z
---

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.&#x20;

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.

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

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

:::hint{type="info"}
It is essential to understand the concept of [async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function)[async/await](#) and [Promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises)[Promises](#) in Javascript. Many functions of SignumJS require to communicate with remote servers and therefore you need to be familiar with asynchronous Javascript.
:::
