G
G
Golem SDK
Search…
yapapi - Python high-level API
yajsapi - JavaScript high-level API
Yagna Contributor Guide
Class: Subscription
yajsapi / Exports / rest/market / Subscription

Class: Subscription

rest/market.Subscription

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Subscription(api, subscription_id, _details?)
Parameters
Name
Type
Default value
api
RequestorApi
undefined
subscription_id
string
undefined
_details
null | Demand
null
Defined in

Properties

_api

_api: RequestorApi
Defined in

_deleted

Private _deleted: boolean
Defined in

_details

Private _details: any
Defined in

_id

Private _id: string
Defined in

_open

Private _open: boolean
Defined in

Methods

close

close(): void
Returns
void
Defined in

delete

delete(): Promise
Returns
Promise
Defined in

details

details(): Demand
Returns
Demand
Defined in

done

done(): Promise
Returns
Promise
Defined in

events

events(cancellationToken?): AsyncGenerator<OfferProposal, any, unknown>
Parameters
Name
Type
cancellationToken?
any
Returns
AsyncGenerator<OfferProposal, any, unknown>
Defined in

id

id(): string
Returns
string
Defined in

ready

ready(): Promise<Subscription>
Returns
Promise<Subscription>
Defined in
Last modified 1mo ago