0.1.15 • Published 1 month ago

@tegro-dex/sdk v0.1.15

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

Tegro DEX Typescript SDK

This library is aimed at providing users with a easier interface to use Tegro DEX APIs for use in TypeScript and JavaScript(CJS). It exposes all the different functionalities offered by the REST API through more intuitive means.

Installing

npm install @tegro-dex/sdk

# or

yarn add @tegro-dex/sdk

Usage

The main class of interest in the library is the TegroDexClient, which needs to be initialized with the environment of choice and the private wallet key that user wants to use.

import { TegroDexClient, Environment } from '@tegro-dex/sdk'

const client = new TegroDexClient(
                  ENVIRONMENT.TESTNET,
                  "wallet private key" // The wallet private key is used to sign the transactions
                );

The library also offers a more streamlined experience for receiving realtime events through web sockets. The TegroDexClient class allows subscription to the events using callback functions.

The functions offered by the TegroDexClient can be viewed here.

Documentation

Documentation Homepage

0.1.13

1 month ago

0.1.14

1 month ago

0.1.15

1 month ago

0.1.11

2 months ago

0.1.12

2 months ago

0.1.10

2 months ago

0.1.8

2 months ago

0.1.9

2 months ago

0.1.7

2 months ago

0.1.6

2 months ago

0.1.5

2 months ago

0.1.2

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.1.0

3 months ago

0.1.1

3 months ago

0.0.8

3 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.3

3 months ago

0.0.2

3 months ago

0.0.5

3 months ago

0.0.4

3 months ago

0.0.1

3 months ago