> ## Documentation Index
> Fetch the complete documentation index at: https://dev.commerce.moonpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SDK

> 🖥️ Installation guide for our SDK

For a complete list of available methods, types, and configuration options, visit the official packages on NPM:

> [!NOTE]
>
> [SDK](https://www.npmjs.com/package/@heliofi/sdk)

> [!NOTE]
>
> Refer to the guide [here](https://docs.hel.io/reference/getting-started#1-create-your-account--get-api-keys) for instructions on generating your API keys.

### Import

Import the SDK into your project using ES modules:

```bash Package theme={null}
/** 
 * npm i @heliofi/sdk
 **/

import {HelioSDK} from '@heliofi/sdk';
```

Once you've included the script or package, you're ready to initialise the SDK and start integrating with our suite of cryptocurrency payment solutions.

### Example Usage

Then, import and initialise the SDK in your project, and immediately begin using it — for example, to create a pay link:

```bash Typescript theme={null}
import HelioSDK from '@heliofi/sdk';

const sdk = new HelioSDK({
  apiKey: 'your-public-api-key',
  secretKey: 'your-secret-key',
  network: 'mainnet', // optional, mainnet by default
});

const paylink = await sdk.paylink.create(createPaylinkDto);
```

Replace the placeholders with your actual API credentials.
