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)
Package Manager Installation
Install the SDK using your preferred package manager:- npm
- yarn
- pnpm
- bun
bash npm install @oraichain/lfg-client-js Verify Installation
Create a test file to verify the installation:test.ts
If you see “SDK installed successfully!”, the installation is complete and
working correctly.
TypeScript Configuration
For optimal TypeScript support, add these settings to yourtsconfig.json:
tsconfig.json
Dependencies
The SDK automatically installs these peer dependencies:| Package | Purpose |
|---|---|
@cosmjs/proto-signing | Transaction signing |
@cosmjs/stargate | Cosmos SDK integration |
bignumber.js | Precise decimal math |
long | 64-bit integer support |
You don’t need to manually install these dependencies - they’re included
automatically.
Optional Tools
Consider installing these tools to enhance your development experience:tsx - TypeScript Execution
tsx - TypeScript Execution
Execute TypeScript files directly without compilation:Usage:
dotenv - Environment Variables
dotenv - Environment Variables
Manage API keys and secrets securely:Usage:
@types/node - Node.js Type Definitions
@types/node - Node.js Type Definitions
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