Skip to main content

exchanges.subgraph

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

Namespace: subgraph

exchanges.subgraph

Table of contents

Type Aliases

Functions

Type Aliases

SingleExchangeQueryVariables

Ƭ SingleExchangeQueryVariables: Omit<GetExchangeByIdQueryQueryVariables, "exchangeId">

Defined in

src/exchanges/subgraph.ts:9

Functions

getExchangeById

getExchangeById(subgraphUrl, exchangeId, queryVars?): Promise<ExchangeFieldsFragment>

Parameters

NameType
subgraphUrlstring
exchangeIdBigNumberish
queryVarsSingleExchangeQueryVariables

Returns

Promise<ExchangeFieldsFragment>

Defined in

src/exchanges/subgraph.ts:23


getExchanges

getExchanges(subgraphUrl, queryVars?): Promise<ExchangeFieldsFragment[]>

Parameters

NameType
subgraphUrlstring
queryVarsExact<{ exchangesFilter?: Exchange_Filter ; exchangesFirst?: number ; exchangesOrderBy?: Exchange_OrderBy ; exchangesOrderDirection?: OrderDirection ; exchangesSkip?: number }>

Returns

Promise<ExchangeFieldsFragment[]>

Defined in

src/exchanges/subgraph.ts:14