SDKs

Quick Start

Install the package

npm install @ordanetwork/sdk

Requirements: Node.js 18.0.0+

Initialize SDK

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 to create a project and manage API keys.

Bridge & Swap

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

Last updated