> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hel.io/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:

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

<Info>
  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.
</Info>

### Import

Import the SDK into your project using ES modules:

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

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

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:

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

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

  const paylink = await sdk.paylink.create(createPaylinkDto);
  ```
</CodeGroup>

Replace the placeholders with your actual API credentials.
