You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/pages/en/deploying/deploying-a-subgraph-to-hosted.mdx
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Deploying a Subgraph to the Hosted Service
4
4
5
5
> Hosted service endpoints will be deprecated on June 12th 2024. [Learn more](/sunrise).
6
6
7
-
This page explains how to deploy a subgraph to the hosted service. To deploy a subgraph you need to first install the [Graph CLI](https://github.com/graphprotocol/graph-cli). If you have not created a subgraph already, see [creating a subgraph](/developing/creating-a-subgraph).
7
+
This page explains how to deploy a subgraph to the hosted service. To deploy a subgraph you need to first install the [Graph CLI](https://github.com/graphprotocol/graph-tooling/tree/main/packages/cli). If you have not created a subgraph already, see [creating a subgraph](/developing/creating-a-subgraph).
8
8
9
9
## Create a hosted service account
10
10
@@ -32,7 +32,7 @@ Before deploying the subgraph, you need to create it in The Graph Explorer. Go t
32
32
33
33
**Hide** - Switching this on hides the subgraph in the Graph Explorer.
34
34
35
-
After saving the new subgraph, you are shown a screen with help on how to install the Graph CLI, how to generate the scaffolding for a new subgraph, and how to deploy your subgraph. The first two steps were covered in the [Defining a Subgraph section](/developing/defining-a-subgraph).
35
+
After saving the new subgraph, you are shown a screen with help on how to install the Graph CLI, how to generate the scaffolding for a new subgraph, and how to deploy your subgraph. The first two steps were covered in the [Creating a Subgraph section](/developing/creating-a-subgraph/).
Copy file name to clipboardExpand all lines: website/pages/en/deploying/deploying-a-subgraph-to-studio.mdx
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
---
2
-
title: Deploying a Subgraph to the Subgraph Studio
2
+
title: Deploying a Subgraph to Subgraph Studio
3
3
---
4
4
5
5
> Learn how you can deploy non rate-limited subgraphs to Subgraph Studio [here](https://www.notion.so/edgeandnode/The-Graph-Subgraph-Studio-Non-Rate-Limited-Chain-Integration-889fe061ee6b4423a7f8e2c8070b9294).
6
6
7
-
These are the steps to deploy your subgraph to the Subgraph Studio:
7
+
These are the steps to deploy your subgraph to Subgraph Studio:
8
8
9
9
- Install The Graph CLI (with either yarn or npm)
10
-
- Create your Subgraph in the Subgraph Studio
10
+
- Create your Subgraph in Subgraph Studio
11
11
- Authenticate your account from the CLI
12
-
- Deploying a Subgraph to the Subgraph Studio
12
+
- Deploying a Subgraph to Subgraph Studio
13
13
14
14
## Installing Graph CLI
15
15
16
-
There is a CLI to deploy subgraphs to [Subgraph Studio](https://thegraph.com/studio/). Here are the commands to install graph-cli. This can be done using npm or yarn.
16
+
There is a CLI to deploy subgraphs to [Subgraph Studio](https://thegraph.com/studio/). Here are the commands to install `graph-cli`. This can be done using npm or yarn.
Copy file name to clipboardExpand all lines: website/pages/en/deploying/hosted-service.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -12,13 +12,13 @@ For a comprehensive list, see [Supported Networks](/developing/supported-network
12
12
13
13
## Create a Subgraph
14
14
15
-
First follow the instructions [here](/developing/defining-a-subgraph) to install the Graph CLI. Create a subgraph by passing in `graph init --product hosted-service`
15
+
First follow the instructions [here](/developing/creating-a-subgraph/#install-the-graph-cli) to install the Graph CLI. Create a subgraph by passing in `graph init --product hosted-service`
16
16
17
17
### From an Existing Contract
18
18
19
19
If you already have a smart contract deployed to your network of choice, bootstrapping a new subgraph from this contract can be a good way to get started on the hosted service.
20
20
21
-
You can use this command to create a subgraph that indexes all events from an existing contract. This will attempt to fetch the contract ABI from [Etherscan](https://etherscan.io/).
21
+
You can use this command to create a subgraph that indexes all events from an existing contract. This will attempt to fetch the contract ABI from the block explorer.
22
22
23
23
```sh
24
24
graph init \
@@ -27,7 +27,7 @@ graph init \
27
27
<GITHUB_USER>/<SUBGRAPH_NAME> [<DIRECTORY>]
28
28
```
29
29
30
-
Additionally, you can use the following optional arguments. If the ABI cannot be fetched from Etherscan, it falls back to requesting a local file path. If any optional arguments are missing from the command, it takes you through an interactive form.
30
+
Additionally, you can use the following optional arguments. If the ABI cannot be fetched from the block explorer, it falls back to requesting a local file path. If any optional arguments are missing from the command, it takes you through an interactive form.
Copy file name to clipboardExpand all lines: website/pages/en/deploying/subgraph-studio-faqs.mdx
+3-3
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ title: Subgraph Studio FAQs
8
8
9
9
## 2. How do I create an API Key?
10
10
11
-
To create an API, navigate to the Subgraph Studio and connect your wallet. You will be able to click the API keys tab at the top. There, you will be able to create an API key.
11
+
To create an API, navigate to Subgraph Studio and connect your wallet. You will be able to click the API keys tab at the top. There, you will be able to create an API key.
12
12
13
13
## 3. Can I create multiple API Keys?
14
14
@@ -20,12 +20,12 @@ After creating an API Key, in the Security section, you can define the domains t
20
20
21
21
## 5. Can I transfer my subgraph to another owner?
22
22
23
-
Yes, subgraphs that have been published to Mainnet can be transferred to a new wallet or a Multisig. You can do so by clicking the three dots next to the 'Publish' button on the subgraph's details page and selecting 'Transfer ownership'.
23
+
Yes, subgraphs that have been published to Arbitrum One can be transferred to a new wallet or a Multisig. You can do so by clicking the three dots next to the 'Publish' button on the subgraph's details page and selecting 'Transfer ownership'.
24
24
25
25
Note that you will no longer be able to see or edit the subgraph in Studio once it has been transferred.
26
26
27
27
## 6. How do I find query URLs for subgraphs if I’m not the developer of the subgraph I want to use?
28
28
29
-
You can find the query URL of each subgraph in the Subgraph Details section of The Graph Explorer. When you click on the “Query” button, you will be directed to a pane wherein you can view the query URL of the subgraph you’re interested in. You can then replace the `<api_key>` placeholder with the API key you wish to leverage in the Subgraph Studio.
29
+
You can find the query URL of each subgraph in the Subgraph Details section of The Graph Explorer. When you click on the “Query” button, you will be directed to a pane wherein you can view the query URL of the subgraph you’re interested in. You can then replace the `<api_key>` placeholder with the API key you wish to leverage in Subgraph Studio.
30
30
31
31
Remember that you can create an API key and query any subgraph published to the network, even if you build a subgraph yourself. These queries via the new API key, are paid queries as any other on the network.
Copy file name to clipboardExpand all lines: website/pages/en/deploying/subgraph-studio.mdx
+9-9
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
-
title: How to Use the Subgraph Studio
2
+
title: How to Use Subgraph Studio
3
3
---
4
4
5
5
Welcome to your new launchpad 👩🏽🚀
6
6
7
-
The Subgraph Studio is your place to build and create subgraphs, add metadata, and publish them to the new decentralized Explorer (more on that [here](/network/explorer)).
7
+
Subgraph Studio is your place to build and create subgraphs, add metadata, and publish them to the new decentralized Explorer (more on that [here](/network/explorer)).
8
8
9
-
What you can do in the Subgraph Studio:
9
+
What you can do in Subgraph Studio:
10
10
11
11
- Create a subgraph through the Studio UI
12
12
- Deploy a subgraph using the CLI
@@ -15,7 +15,7 @@ What you can do in the Subgraph Studio:
15
15
- Integrate it in staging using the query URL
16
16
- Create and manage your API keys for specific subgraphs
17
17
18
-
Here in the Subgraph Studio, you have full control over your subgraphs. Not only can you test your subgraphs before you publish them, but you can also restrict your API keys to specific domains and only allow certain Indexers to query from their API keys.
18
+
Here in Subgraph Studio, you have full control over your subgraphs. Not only can you test your subgraphs before you publish them, but you can also restrict your API keys to specific domains and only allow certain Indexers to query from their API keys.
19
19
20
20
Querying subgraphs generates query fees, used to reward [Indexers](/network/indexing) on the Graph network. If you’re a dapp developer or subgraph developer, the Studio will empower you to build better subgraphs to power your or your community’s queries. The Studio is comprised of 5 main parts:
21
21
@@ -27,7 +27,7 @@ Querying subgraphs generates query fees, used to reward [Indexers](/network/inde
27
27
28
28
## How to Create Your Account
29
29
30
-
1. Sign in with your wallet - you can do this via MetaMaskor WalletConnect
30
+
1. Sign in with your wallet - you can do this via MetaMask, WalletConnect, Coinbase Wallet or Safe.
31
31
1. Once you sign in, you will see your unique deploy key on your account home page. This will allow you to either publish your subgraphs or manage your API keys + billing. You will have a unique deploy key that can be re-generated if you think it has been compromised.
32
32
33
33
## How to Create a Subgraph in Subgraph Studio
@@ -50,7 +50,7 @@ More features & networks will be added to The Graph Network incrementally.
After you have created your subgraph, you will be able to deploy it using the [CLI](https://github.com/graphprotocol/graph-cli), or command-line interface. Deploying a subgraph with the CLI will push the subgraph to the Studio where you’ll be able to test subgraphs using the playground. This will eventually allow you to publish to the Graph Network. For more information on CLI setup, [check this out](/developing/defining-a-subgraph#install-the-graph-cli) (pst, make sure you have your deploy key on hand). Remember, deploying is **not the same as** publishing. When you deploy a subgraph, you just push it to the Studio where you’re able to test it. Versus, when you publish a subgraph, you are publishing it on-chain.
53
+
After you have created your subgraph, you will be able to deploy it using the [CLI](https://github.com/graphprotocol/graph-tooling/tree/main/packages/cli), or command-line interface. Deploying a subgraph with the CLI will push the subgraph to the Studio where you’ll be able to test subgraphs using the playground. This will eventually allow you to publish to the Graph Network. For more information on CLI setup, [check this out](/developing/defining-a-subgraph#install-the-graph-cli) (psst, make sure you have your deploy key on hand). Remember, deploying is **not the same as** publishing. When you deploy a subgraph, you just push it to the Studio where you’re able to test it. Versus, when you publish a subgraph, you are publishing it on-chain.
54
54
55
55
## Testing your Subgraph in Subgraph Studio
56
56
@@ -60,13 +60,13 @@ If you’d like to test your subgraph before publishing it to the network, you c
60
60
61
61
You’ve made it this far - congrats!
62
62
63
-
In order to publish your subgraph successfully, you’ll need to go through the following steps outlined in this [blog](https://thegraph.com/blog/building-with-subgraph-studio).
63
+
In order to publish your subgraph successfully, you’ll need to go through the following steps outlined in this [section](/publishing/publishing-a-subgraph/).
64
64
65
65
Check out the video overview below as well:
66
66
67
67
<VideoEmbedyoutube="satdwdbvzAQ" />
68
68
69
-
Remember, while you’re going through your publishing flow, you’ll be able to push to either mainnet or Goerli. If you’re a first-time subgraph developer, we highly suggest you start with publishing to Goerli, which is free to do. This will allow you to see how the subgraph will work in The Graph Explorer and will allow you to test curation elements.
69
+
Remember, while you’re going through your publishing flow, you’ll be able to push to either Arbitrum One or Arbitrum Sepolia. If you’re a first-time subgraph developer, we highly suggest you start with publishing to Arbitrum Sepolia, which is free to do. This will allow you to see how the subgraph will work in The Graph Explorer and will allow you to test curation elements.
70
70
71
71
Indexers need to submit mandatory Proof of Indexing records as of a specific block hash. Because publishing a subgraph is an action taken on-chain, remember that the transaction can take up to a few minutes to go through. Any address you use to publish the contract will be the only one able to publish future versions. Choose wisely!
72
72
@@ -84,6 +84,6 @@ Please note that there are costs associated with publishing a new version of a s
84
84
85
85
### Automatic Archiving of Subgraph Versions
86
86
87
-
Whenever you deploy a new subgraph version in the Subgraph Studio, the previous version will be archived. Archived versions won't be indexed/synced and therefore cannot be queried. You can unarchive an archived version of your subgraph in the Studio UI. Please note that previous versions of non-published subgraphs deployed to the Studio will be automatically archived.
87
+
Whenever you deploy a new subgraph version in Subgraph Studio, the previous version will be archived. Archived versions won't be indexed/synced and therefore cannot be queried. You can unarchive an archived version of your subgraph in the Studio UI. Please note that previous versions of non-published subgraphs deployed to the Studio will be automatically archived.
88
88
89
89

0 commit comments