Getting Started
Creating a Project
Access our Dev Portal and create a project for your organization. You will be given the Client ID and Client Secret for authentication.
Installation
npm install @ordanetwork/sdkpnpm add @ordanetwork/sdkyarn add @ordanetwork/sdkRequirements: 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
});Module Formats
The orda SDK is compatible with ES Modules and CommonJS:
import { OrdaSDK } from '@ordanetwork/sdk';const { OrdaSDK } = require('@ordanetwork/sdk');Security
⚠️ Never expose credentials in frontend code. Always use environment variables on your backend server.
Example (backend):
const orda = new OrdaSDK({
clientId: process.env.ORDA_CLIENT_ID,
clientSecret: process.env.ORDA_CLIENT_SECRET
});Last updated