Installation
This guide will help you install the Opinion CLOB TypeScript SDK and its dependencies.
Package registry: https://www.npmjs.com/package/@opinion-labs/opinion-clob-sdk
Requirements
Node.js Version
Node.js 18 or higher
Check your Node.js version:
node --versionSystem Requirements
Operating Systems: Linux, macOS, Windows
Network: Internet connection for API access and blockchain RPC
Optional: Git (for development installation)
Installation Methods
Install from npm (Recommended)
The simplest way to install the Opinion CLOB TypeScript SDK is via a package manager.
npm install @opinion-labs/opinion-clob-sdkyarn add @opinion-labs/opinion-clob-sdkpnpm add @opinion-labs/opinion-clob-sdkThis will install the latest stable version and all required dependencies including viem.
Dependencies
The SDK automatically installs the following key dependency:
viem
Blockchain interactions, contract calls, transaction signing
Verify Installation
After installation, verify it works:
Project Setup
Create a new project and configure it for the SDK:
Create a new project
Add ESM support
Add "type": "module" to package.json, then install dependencies:
Initialize TypeScript
Ensure your tsconfig.json includes the following settings:
Upgrading
To upgrade to the latest version:
Uninstalling
To remove the SDK:
Next Steps
Once installed, proceed to:
Last updated