SDK

The SDK provides interfaces to communicate with the Onchain LOB API. Here is a description of the TypeScript version of the SDK.

The main object to start with is OnchainLobClient. It holds information about the Onchain LOB API endpoints and the user transaction signing interface.

All methods to interact with the spot market are available in the OnchainLobSpot class.

The SDK also provides type and interface definitions for the objects used.

Getting Started

Prerequisites

Installation

  1. Install the SDK package

    npm install onchain-lob-sdk
  2. Install the ws package if you going to use it in the Node.js environment

    npm install ws

Last updated