# Getting Started

### Creating a Project

Access our [Dev Portal](https://app.orda.network/) and create a project for your organization. You will be given the **Client ID** and **Client Secret** for authentication.

### Installation

{% tabs %}
{% tab title="npm" %}

```bash
npm install @ordanetwork/sdk
```

{% endtab %}

{% tab title="pnpm" %}

```bash
pnpm add @ordanetwork/sdk
```

{% endtab %}

{% tab title="yarn" %}

```bash
yarn add @ordanetwork/sdk
```

{% endtab %}
{% endtabs %}

**Requirements:** Node.js 18.0.0+

### Initialize SDK

```typescript
import { OrdaSDK } from '@ordanetwork/sdk';

const orda = new OrdaSDK({
  clientId: process.env.ORDA_CLIENT_ID,
  clientSecret: process.env.ORDA_CLIENT_SECRET
});
```

### Module Formats

The orda SDK is compatible with ES Modules and CommonJS:

{% tabs %}
{% tab title="ES Modules" %}

<pre class="language-typescript"><code class="lang-typescript"><strong>import { OrdaSDK } from '@ordanetwork/sdk';
</strong></code></pre>

{% endtab %}

{% tab title="CommonJS" %}

```javascript
const { OrdaSDK } = require('@ordanetwork/sdk');
```

{% endtab %}
{% endtabs %}

### Security

{% hint style="warning" %}
⚠️ Never expose credentials in frontend code. Always use environment variables on your backend server.

Example (backend):

{% code title="Backend initialization" %}

```javascript
const orda = new OrdaSDK({
  clientId: process.env.ORDA_CLIENT_ID,
  clientSecret: process.env.ORDA_CLIENT_SECRET
});
```

{% endcode %}
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.orda.network/developers/sdks/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
