Skip to main content

offers.subgraph

@bosonprotocol/core-sdk / Exports / offers / subgraph

Namespace: subgraph

offers.subgraph

Table of contents

Type Aliases

Functions

Type Aliases

SingleOfferQueryVariables

Ƭ SingleOfferQueryVariables: Omit<GetOfferByIdQueryQueryVariables, "offerId">

Defined in

src/offers/subgraph.ts:9

Functions

getOfferById

getOfferById(subgraphUrl, offerId, queryVars?): Promise<OfferFieldsFragment>

Parameters

NameType
subgraphUrlstring
offerIdBigNumberish
queryVarsSingleOfferQueryVariables

Returns

Promise<OfferFieldsFragment>

Defined in

src/offers/subgraph.ts:14


getOffers

getOffers(subgraphUrl, queryVars?): Promise<OfferFieldsFragment[]>

Parameters

NameType
subgraphUrlstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number ; includeExchanges?: boolean ; offersFilter?: Offer_Filter ; offersFirst?: number ; offersOrderBy?: Offer_OrderBy ; offersOrderDirection?: OrderDirection ; offersSkip?: number }>

Returns

Promise<OfferFieldsFragment[]>

Defined in

src/offers/subgraph.ts:27