# SDKs

## Quick Start

Install the package

{% 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
});
```

Visit the [orda developer portal](https://app.orda.network/) to create a project and manage API keys.

### Bridge & Swap

```typescript
const quote = await orda.quote.request({
  fromChain: '8453', // Base
  fromToken: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913', // USDC on Base
  fromAddress: '0xYourAddress',
  intent: {
    method: 'fromAmount',
    value: '1000000' // 1 USDC (6 decimals)
  },
  settlementDetails: {
    toChain: '42161', // Arbitrum One
    toToken: '0xdAC17F958D2ee523a2206206994597C13D831ec7', // USDT on Arbitrum
    toAddress: '0xRecipientAddress'
  }
})
```

This requests a quote to send **USDC from Base to USDT on Arbitrum**. orda will return the best path, including fees and expected settlement time.

### Dependencies

* `@aa-sdk/core`
* `@account-kit/core`
* `@account-kit/infra`
* `@account-kit/smart-contracts`
* `viem`

### License

MIT
