Hanji Docs
  • About Hanji
  • Trading
    • Order Book
    • Order Types
    • Fees
  • Architecture
    • Matching Engine
    • Prices and Precision
    • Gas Costs
  • Audits
  • For developers
    • API
      • Contract API
      • Common objects
      • HTTP API
      • Websocket API
    • SDK
      • HanjiClient
      • HanjiSpot
  • LP Vault
    • Overview
    • Hanji Vault
    • Single-Token LP Vaults
Powered by GitBook
On this page
  • Getting Started
  • Prerequisites
  • Installation
  1. For developers

SDK

PreviousWebsocket APINextHanjiClient

Last updated 7 months ago

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

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

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

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

Getting Started

Prerequisites

  • version 20.10.0 or later

  • or

Installation

  1. Install the SDK package

    npm install hanji-ts-sdk
  2. Install the package if you going to use it in the Node.js environment

    npm install ws
SDK
HanjiClient
HanjiSpot
Node.js
npm
Yarn
ws