|
Hi 👋 This part of the READme is helpful for passing on api keys https://github.com/graphprotocol/graph-client#customize-network-calls sources:
- name: uniswapv2
handler:
graphql:
endpoint: https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v2
operationHeaders:
Authorization: Bearer {context.config.apiToken}However, querying the Subgraph Studio requires the ApiKey to be on the endpoint url per se (e.g. Mind explaining if this can be achieved using Thank you! |
Replies: 23 comments 14 replies
|
You can use the same interpolation logic for sources:
- name: uniswapv2
handler:
graphql:
endpoint: https://gateway.thegraph.com/api/{env.API_KEY}/subgraphs/id/some_somgraph_id |
|
nice |
|
Gm! |
|
Thx! Good job) |
|
Very good! |
|
Interesting thing! Thanks mate's! |
|
nice, i didnt think that is so easy ! da best |
|
nice work |
|
nice work |
|
good job thx |
|
yes good |
|
Awesome! |
|
Thanks! |
|
Nice job! |
|
Cool |
|
great job |
|
Thank you for your job! |
|
Hi all. I look here everyone wishes good luck. So success to everyone and diligence. |
|
Thanks!!! |
You can use the same interpolation logic for
endpointBUT keep on mind it still needs to introspect the schema first. So I'd recommend to use environment variables for this;