Skip to main content

Prerequisites

Before installing the SDK, ensure your development environment meets these requirements:

Node.js

Version 18.0.0 or higher

TypeScript

Version 5.0.0 or higher (recommended)
We recommend using Node.js 18 LTS or later for the best compatibility and performance.

Package Manager Installation

Install the SDK using your preferred package manager:
bash npm install @oraichain/lfg-client-js

Verify Installation

Create a test file to verify the installation:
test.ts
Run the test:
If you see “SDK installed successfully!”, the installation is complete and working correctly.

TypeScript Configuration

For optimal TypeScript support, add these settings to your tsconfig.json:
tsconfig.json

Dependencies

The SDK automatically installs these peer dependencies:
You don’t need to manually install these dependencies - they’re included automatically.

Optional Tools

Consider installing these tools to enhance your development experience:
Execute TypeScript files directly without compilation:
Usage:
Manage API keys and secrets securely:
Usage:
Type definitions for Node.js APIs:

Next Steps

Now that the SDK is installed, you’re ready to start building:

Quickstart Guide

Build your first trading application

Configuration

Learn about network and client configuration

Wallet Setup

Set up wallets and subaccounts

Place Your First Order

Learn how to place and manage orders