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
Functions
getOfferById
▸ getOfferById(subgraphUrl
, offerId
, queryVars?
): Promise
<OfferFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
offerId | BigNumberish |
queryVars | SingleOfferQueryVariables |
Returns
Promise
<OfferFieldsFragment
>
Defined in
getOffers
▸ getOffers(subgraphUrl
, queryVars?
): Promise
<OfferFieldsFragment
[]>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
queryVars | Exact <{ 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
[]>