yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: Market

yajsapi / Exports / rest/market / Market

Class: Market

rest/market.Market

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Market(cfg)

Parameters

Name

Type

cfg

Configuration

Defined in

yajsapi/rest/market.ts:286

Properties

_api

Private _api: RequestorApi

Defined in

yajsapi/rest/market.ts:286

Methods

subscribe

subscribe(props, constraints): Promise<Subscription>

Parameters

Name

Type

props

Object

constraints

string

Returns

Promise<Subscription>

Defined in

yajsapi/rest/market.ts:291

subscriptions

subscriptions(): AsyncGenerator<Subscription, any, unknown>

Returns

AsyncGenerator<Subscription, any, unknown>

Defined in

yajsapi/rest/market.ts:309