Skip to content
Docs
API Routes
Misc

Misc API

Uncategorized API endpoints.

[GET  - `info/chains`]:                         List of supported chains.
[POST - `{chainID}/graph`]:                     Proxy a request to the subgraph for a specific chain.

GET
info/chains

Get Supported Chains

Get Supported Chains: REST API endpoint to get the list of supported chains

Request

Params

N/A

Query arguments

N/A

Response

Valid request
[]uint64{}
[1, 10, 250, 42161]
Invalid request

N/A


POST
:chainID/graph

Query Subgraph

Query Subgraph: This special endpoint can be used to query the subgraph for a specific chain. By using it you don't have to worry about the subgraph URL. The endpoint will automatically use the correct subgraph URL for the query. This is mostly a proxy, and an experimental feature. The response is the same as the subgraph response.

Request

Params
  • chainID: The chainID of the chain you want to get the Prices for. Must be provided in the URL, and must be one of the supported chains.
Body arguments

Any valid GraphQl request

Response

Valid request

GraphQl response matching your request

Invalid request
  • 400 - invalid chainID: The provided chainID is not supported.
  • 500 - impossible to fetch subgraph: yDaemon was unable to connect to the subgraph.
  • 500 - invalid graphQL response: yDaemon was unable to parse the response from the subgraph.