# Accessing the Network Tool Library

{% hint style="info" %}
📺 Watch on Youtube!: [The Network Tools Library Introduction & Example](https://www.youtube.com/watch?v=Wuw_lpxAYzQ)
{% endhint %}

The following directory contains the files needed to interact with the library:

`/home/<USERNAME>/hollaex-kit/server/utils/hollaex-network-lib`

In the .js file you will use to run whatever commands desired, three elements must be passed:

* `apiKey`
* `apiSecret`
* `activation_code`

If you know your exchange's ID, the field `exchange_id` can also be passed.&#x20;

These attributes are passed as such:&#x20;

```javascript
const Network = require('hollaex-network-lib');

const client = new Network({
	apiKey: '<MY_API_KEY>',
	apiSecret: '<MY_API_SECRET>'
	activation_code: '<MY_ACTIVATION_CODE>'
});
```

The field `apiExpiresAfter` can also be passed, which denotes the length of time (in seconds) each request is valid for. By default this value is `60`.

The exchanges activation key can be accessed in the following manner:

1. Access your exchanges settings with the tab in the top left
2. Enter the General settings page
3. Scroll to the bottom, click the eye icon to reveal the code and copy it

![](https://3965312054-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MP899VqAdyGFgLTy9SY%2Fuploads%2Fh0a42wKbpRQfkBS98fRC%2Factiavtioncode.png?alt=media\&token=2afbc023-894b-4373-a0a2-20cb2b767aed)

Alternatively, by accessing the *secrets* file in the *settings* directory of the HollaEx Kit, all 3 required codes can be found. &#x20;
