erc20.subgraph
@bosonprotocol/core-sdk / Exports / erc20 / subgraph
Namespace: subgraph
erc20.subgraph
Table of contents
Type Aliases
Functions
Type Aliases
SingleExchangeTokenQueryVariables
Ƭ SingleExchangeTokenQueryVariables: Omit
<GetExchangeTokenByIdQueryQueryVariables
, "exchangeTokenId"
>
Defined in
Functions
getExchangeTokenById
▸ getExchangeTokenById(subgraphUrl
, exchangeTokenId
, queryVars?
): Promise
<ExchangeTokenFieldsFragment
>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
exchangeTokenId | string |
queryVars | SingleExchangeTokenQueryVariables |
Returns
Promise
<ExchangeTokenFieldsFragment
>
Defined in
getExchangeTokens
▸ getExchangeTokens(subgraphUrl
, queryVars?
): Promise
<ExchangeTokenFieldsFragment
[]>
Parameters
Name | Type |
---|---|
subgraphUrl | string |
queryVars | Exact <{ exchangeTokensFilter? : ExchangeToken_Filter ; exchangeTokensFirst? : number ; exchangeTokensOrderBy? : ExchangeToken_OrderBy ; exchangeTokensOrderDirection? : OrderDirection ; exchangeTokensSkip? : number ; fundsFilter? : FundsEntity_Filter ; fundsFirst? : number ; fundsOrderBy? : FundsEntity_OrderBy ; fundsOrderDirection? : OrderDirection ; fundsSkip? : number ; includeFunds? : boolean ; includeOffers? : boolean ; offersFilter? : Offer_Filter ; offersFirst? : number ; offersOrderBy? : Offer_OrderBy ; offersOrderDirection? : OrderDirection ; offersSkip? : number }> |
Returns
Promise
<ExchangeTokenFieldsFragment
[]>