Search
Preparing search index...
The search index is not available
@yfi/sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@yfi/sdk
SubgraphService
Class SubgraphService
Hierarchy
Service
SubgraphService
Index
Constructors
constructor
Properties
chain
Id
ctx
events
yearn
Subgraph
Endpoint
Methods
fetch
Query
Constructors
constructor
new
Subgraph
Service
(
chainId
:
1
|
10
|
250
|
1337
|
42161
, ctx
:
Context
)
:
SubgraphService
Parameters
chainId:
1
|
10
|
250
|
1337
|
42161
ctx:
Context
Returns
SubgraphService
Properties
chain
Id
chain
Id
:
1
|
10
|
250
|
1337
|
42161
ctx
ctx
:
Context
events
events
:
Emittery
<
Record
<
string
,
unknown
>
,
Record
<
string
,
unknown
>
&
OmnipresentEventData
,
never
>
Optional
yearn
Subgraph
Endpoint
yearn
Subgraph
Endpoint
?:
string
Methods
fetch
Query
fetch
Query
<
T
>
(
query
:
string
, variables
?:
{}
)
:
Promise
<
T
>
Type parameters
T
Parameters
query:
string
variables:
{}
= {}
[
key:
string
]:
unknown
Returns
Promise
<
T
>
Exports
Subgraph
Service
constructor
chain
Id
ctx
events
yearn
Subgraph
Endpoint
fetch
Query
Generated using
TypeDoc